pug-plugin
Advanced tools
Changelog
4.9.6 (2023-03-04)
Changelog
4.9.5 (2023-02-20)
Changelog
4.9.4 (2023-02-03)
Changelog
4.9.2 (2023-01-20)
Changelog
4.9.1 (2023-01-19)
pretty
option is trueChangelog
4.9.0 (2023-01-15)
css
option name instead of the extractCss
new PugPlugin({
modules: [
PugPlugin.extractCss({
filename: 'assets/css/[name].[contenthash].css',
}),
],
}),
Use the new syntax, since v4.6.0
:
new PugPlugin({
css: {
filename: 'assets/css/[name].[contenthash].css',
},
}),
?inline
queryChangelog
4.8.0 (2023-01-03)
img&attributes({
src: require('./image.png'),
srcset: `${require('./image1.png')} 80w, ${require('./image2.png')} 90w`,
})
Changelog
4.7.0 (2022-12-31)
js.verbose
option to display extract infojs.outputPath
option
new PugPlugin({
js: {
verbose: true,
filename: '[name].[contenthash].js',
outputPath: 'assets/js/',
},
}),
js.filename
option when used split chunkcss.outputPath
optioncss.filename
is a function, pass the pathData.filename
property as a source fileChangelog
4.6.0 (2022-12-28)
css
as alias for extractCss
option.
Now use the new option name css
instead of extractCss
:
new PugPlugin({
css: {
filename: 'assets/css/[name].[contenthash].css',
},
}),
js
option with filename
property as alias for Webpack output.filename
.
new PugPlugin({
js: {
filename: 'assets/js/[name].[contenthash].js',
},
}),
The js.filename
option has prio over output.filename
option.