configureWebpack: {
plugins: [
new CopyPlugin({
patterns: [
{
from: "./node_modules/easy-player/dist/component/crossdomain.xml",
to: "js/"
},
{
from: "./node_modules/easy-player/dist/component/easy-player.swf",
to: "js/"
},
{
from: "./node_modules/easy-player/dist/component/easy-player-lib.min.js",
to: "js/"
},
],
}),
],
},這是我在vue.config.js中的代碼
ValidationError: 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?, filter?, toType?, force?, info?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
這是我的報錯資訊
有沒有大佬幫忙解決一下……
代碼都是從官網直接拷貝下來修改的
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/232909.html
標籤:JavaScript
上一篇:請教Vue Cli4跨域問題
