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
}
})
}