Open re54k opened 6 years ago
开启压缩功能后,这些都不会存在的
感谢回复,目前使用的是 webpack 2.7,对应的rules 配置如下,但并没有消除掉换行符,是否使用的方式不对?
{
test: /\.art$/,
loader: 'art-template-loader',
options: {
minimize: true,
htmlMinifier: true,
htmlMinifierOptions: {
collapseWhitespace: true,
minifyCSS: false,
minifyJS: false
},
}
}
你可以看下文档 debug
参数的描述
debug 设置为 false 仍然无法解决上面的问题
最好提供一份 demo,以便与解决问题
按照正常的HTML格式书写,build 之后输出内容里含有 “\n”,其实这个是不需要的,有什么方式移除掉么?
输出