filemanager-webpack-plugin 打包自动压缩zip 报错
来源:14-11 电子书列表高级优化
lipapa
2021-01-31
ValidationError: Invalid actions object. FileManagerPlugin has been initialized using an actions object that does not match the API schema.
- actions has an unknown property ‘onEnd’. These properties are valid:
object { events?, runTasksInSeries?, context? }
ValidationError: Invalid actions object. FileManagerPlugin has been initialized using an actions object that does not match the API schema. - actions has an unknown property ‘onEnd’. These properties are valid:
- 按照网上的配置 可是报错 一直没找到解决方法
写回答
2回答
-
lipapa
提问者
2021-02-10
filemanager-webpack-plugin 3.0后的版本 格式应是
{
events: {
onEnd: {
delete: [
'./xxx.zip',
],
archive: [
{ source: './xxx', destination: './xxx.zip' },
]
}
}
},
填坑了 ,自己没注意看官方文档T T
10 -
lipapa
提问者
2021-01-31
已解决
00
相似问题