pug-plugin
Advanced tools
Changelog
3.0.0 (2022-07-17)
Drop support for Node 12
, minimum supported version is 14.18
sass-loader
13.x requires Node 14.By default, the embedded CSS extractor module is now enabled. For compatibility with external extractor, you can disable extractCss module:
new PugPlugin({
extractCss: {
enabled: false, // disable embedded extractCss module to bypass extracting via external plugin
},
}),
definition of extractCss as plugin module is deprecated:
new PugPlugin({
modules: [
PugPlugin.extractCss({
filename: 'assets/css/[name].[contenthash].css',
})
],
}),
now use the new extractCss
option:
new PugPlugin({
extractCss: {
filename: 'assets/css/[name].[contenthash].css',
},
}),
Note: you can still use the
modules: []
option for custom settings.
publicPath
extractCss
option for embedded CSS extract moduleextractCss
module is enabled with default optionsnew PugPlugin()
is equivalent to:
new PugPlugin({
test: /\.(pug)$/,
enabled: true,
verbose: false,
pretty: false,
sourcePath: null,
outputPath: null,
filename: '[name].html',
extractComments: false,
extractCss: {
test: /\.(css|scss|sass|less|styl)$/,
enabled: true,
verbose: false,
filename: '[name].css',
sourcePath: null,
outputPath: null,
},
modules: [],
}),
publicPath
Changelog
2.9.3 (2022-07-05)
Changelog
2.9.0 (2022-07-03)
Changelog
2.8.0 (2022-06-28)
Changelog
2.7.8 (2022-06-27)