Open d0coco opened 5 years ago
我在 webpack.build.js 的res.plugins中添加了下面内容 new HtmlWebpackPlugin({ filename: 'index.html', template: 'src/dev/index.html', inject: true, hash: false, chunks: ['common', 'vue', 'index'] }) 我想在dist中生成一个index.html文件后,可以直接使用,但调试时总是报错 Uncaught TypeError: Cannot read property 'use' of undefined
请问是什么原因
使用的是npm run build
我在 webpack.build.js 的res.plugins中添加了下面内容 new HtmlWebpackPlugin({ filename: 'index.html', template: 'src/dev/index.html', inject: true, hash: false, chunks: ['common', 'vue', 'index'] }) 我想在dist中生成一个index.html文件后,可以直接使用,但调试时总是报错 Uncaught TypeError: Cannot read property 'use' of undefined
请问是什么原因