###### 问题遇到的现象和发生背景 : 学习webpack使用copy-webpack-plugin后进行打包报错
###### 问题相关代码,请勿粘贴截图
const CopyPlugin = require('copy-webpack-plugin');
plugins: [
new CopyPlugin({patterns: [
{
from: 'public',
to: './build'
}
] }
)
],
###### 运行结果及报错内容
```javascript
HookWebpackError: Not supported
at makeWebpackError (D:\index\vue3\vue3-test\webpack\test\03.webpack-file\node_modules\webpack\lib\HookWebpackError.js:48:9)
at hooks.processAssets.callAsync.err (D:\index\vue3\vue3-test\webpack\test\03.webpack-file\node_modules\webpack\lib\Compilation.js:3055:12)
at eval (eval at create (D:\index\vue3\vue3-test\webpack\test\03.webpack-file\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:60:1)
at err (D:\index\vue3\vue3-test\webpack\test\03.webpack-file\node_modules\webpack\lib\Compilation.js:508:26)
at compilation.hooks.processAssets.tapAsync (D:\index\vue3\vue3-test\webpack\test\03.webpack-file\node_modules\copy-webpack-plugin\dist\index.js:485:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
```
###### 我的解答思路和尝试过的方法
###### 我想要达到的结果