pug-plugin
Advanced tools
Changelog
4.1.1 (2022-08-12)
link(href=require('bootstrap') rel='stylesheet')
Changelog
4.1.0 (2022-08-03)
filename
property to the pathData
argument of the filename(pathData)
function in entry objectChangelog
4.0.0 (2022-08-03)
PugPlugin.loader.option.method
is now render
instead of compile
,
because it makes sense in the vast majority of use cases.method
option:{
loader: PugPlugin.loader,
options: {
method: 'compile', // now the default method is `render`
}
},
outputFile
property of the ResourceInfo (the argument of postprocess
function) was replaced with outputPath
.postprocess
was used the outputFile
),
add in your postprocess function the code line:new PugPlugin({
postprocess: (content, info) => {
const outputFile = path.join(info.outputPath, info.assetFile); // add this line to get the removed outputFile
// ...
return content;
}
}),
render
and compile
methodsChangelog
3.1.3 (2022-07-23)
Changelog
3.1.2 (2022-07-23)
Changelog
3.1.1 (2022-07-21)
Changelog
3.1.0 (2022-07-19) DEPRECATED, use v3.1.1
extractComments
option to enable/disable saving comments in *.LICENSE.txt file