Search Docs
Home > @lynx-js/rspeedy > Output > copy
The Output.copy option is used for copying files to the dist directory.
Signature:
copy?: Rspack.CopyRspackPluginOptions | Rspack.CopyRspackPluginOptions['patterns'] | undefined;
For more options, see Rspack.CopyRspackPlugin.
./src/assets
./dist
import { defineConfig } from '@lynx-js/rspeedy' export default defineConfig({ output: { copy: [ // `./src/assets/image.png` -> `./dist/image.png` { from: './src/assets' }, ], }, })
import { defineConfig } from '@lynx-js/rspeedy' export default defineConfig({ output: { copy: [ // `./src/assets/image.png` -> `./dist/assets/image.png` { from: './src/assets', to: 'assets' }, ], }, })