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

1
0

lipapa

提问者

2021-01-31

   已解决

0
0

Vue Element+Node.js开发企业通用管理后台系统

基于Element的中后台课程,一套中小型企业通用的后台管理系统

2829 学习 · 1714 问题

查看课程