Vue project, why the common code mainfest is not added to the index.html packaged by webpack

after the vue project is packaged, run the report: 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"
    }),

which configuration needs to be modified?

Feb.28,2021

chunks: ['manifest', 'vendor', 'app']

instead of mainfest

Menu