ERROR in Error: html-webpack-plugin could not minify the generated output.
In production mode the html minifcation is enabled by default.
If you are not generating a valid html output please disable it manually.
You can do so by adding the following setting to your HtmlWebpackPlugin config:
|
| minify: false
解决问题办法:img标签要用引号包含数据
本文介绍了一个关于html-webpack-plugin在生产模式下默认启用HTML压缩时出现的问题及解决方案。当生成的HTML无效时,该插件将无法进行压缩并抛出错误。文章提供了禁用HTML压缩的方法,即通过设置HtmlWebpackPlugin配置项minify为false。
320

被折叠的 条评论
为什么被折叠?



