webpack插件,将指定文件拷贝到打包目录下
install
$ npm i webpack-copy-file-plugin -D
Example
const CopyFilePlugin = ; // ... plugins: // ... other plugins './LICENSE' './package.json' // 放在其它插件的后面 output: filename: '[name].js' path: path// 需要设置打包目录