Home > front end >  Questions about webpack packed static resources
Questions about webpack packed static resources

Time:12-11

 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/"
},
],
}),
],
},


This is my in vue. Config. Js code in the


 ValidationError: Invalid options object. Copy Plugin has had an initialized using an options object that does not match the API schema. 
- the options [0] misses the property 'patterns'. Should be:
[non - empty string | object {globOptions, context, the from and to???, filter?, toType?, force?, info?, flatten?, the transform?, cacheTransform?, transformPath?, noErrorOnMissing?},... (should not have fewer than 1 item)



This is my error message

Is there a big help to solve the...
Modified code from the website directly copied down
  • Related