Entrypoint undefined = index.html html-webpack-plugin 错误

Entrypoint undefined = index.html html-webpack-plugin 错误_第1张图片

 

加上  stats: { children: false } 即可,屏蔽错误;

webpack打包踩的坑

打包的时候一直包这个错误

Child html-webpack-plugin for "..\index.html":
1 asset
Entrypoint html-webpack-plugin for "..\index.html" = ../index.html
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/ivie
w/dist/styles/iview.css:
Entrypoint mini-css-extract-plugin = *

解决办法:在webpack.config.js文件加上

stats: {
// One of the two if I remember right
entrypoints: false,
children: false
},

你可能感兴趣的:(web前端架构师)