使用copy-webpack-plugin插件遇到的报错:
Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
-options[0] misses the property ‘patterns’. Should be:
[non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, …] (should not have fewer than 1 item)
在学习webpack时,我们通常这样使用该插件:
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports =