vue项目,webpack打包出来的index.html为什么公用代码mainfest没有添加进去

vue项目打包后,运行报:webpackjsonp is not defined
clipboard.png

手动添加之后才生效

clipboard.png

webpack.prod.conf.js

new HtmlWebpackPlugin({
      filename: process.env.NODE_ENV === 'testing'
        ? 'index.html'
        : config.build.index,
      template: 'index.html',
      inject: true,
      minify: {
        removeComments: true,
        collapseWhitespace: true,
        removeAttributeQuotes: true
      },
      chunks:['mainfest', 'vendor', 'app'],
      chunksSortMode: 'dependency'
    }),

请问需要修改哪的配置?

阅读 3k
1 个回答
chunks: ['manifest', 'vendor', 'app']

而不是mainfest

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题