Rspack.CopyRspackPluginOptions | Rspack.CopyRspackPluginOptions['patterns']undefinedCopies the specified file or directory to the dist directory, implemented based on rspack.CopyRspackPlugin.
Please refer to the configuration options here: rspack.CopyRspackPlugin.
Copy files from ./src/assets to the ./dist directory:
Copy files from ./src/assets to the ./dist/assets directory:
When copying files from the public directory to the dist directory during a production build, the public/someDir directory will be ignored: