0
当我使用ExtractTextPlugin提取.pug文件时,它会将其转换为html,但会缩小,因为它会消除噪音?使用插件unminify pug ExtractTextPlugin
const extractHTML = new ExtractTextPlugin('[name]-pug.html');
....
{
test: /\.pug$/,
use: extractHTML.extract({
fallback: "style-loader",
use: ['html-loader' ,'pug-html-loader'],
options: {
pretty: true
}
})
}