pug-plugin
Advanced tools
Changelog
1.4.3 (2022-02-21)
Changelog
1.4.2 (2022-02-19)
compile
methodChangelog
1.4.1 (2022-02-19)
Changelog
1.4.0 (2022-02-18)
BREAKING CHANGE (low probability):
When using required style in pug, like link(rel='stylesheet' href=require('./styles.css'))
then no need anymore the type: 'asset/resource'
in the rule for styles.
UPDATE your webpack.config.js
: remove in the rule for styles (css, scss, sass, etc.) the type
and the generator
fields.
Following is enough to extract CSS everywhere:
{
test: /\.(css|sass|scss)$/,
// type: 'asset/resource', <-- remove the type property
// generator: { 'assets/css/[name].[contenthash:8].css' } <-- remove the generator property
use: [ 'css-loader', 'sass-loader' ],
},
To define a filename for extracted CSS use the option filename
in the extractCss
module:
new PugPlugin({
modules: [
PugPlugin.extractCss({
filename: 'assets/css/[name].[contenthash:8].css'
}),
],
}),
For mode details see plugin options.
feat: add resolving url in CSS and export resolved resource to the output path
feat: add caching of already resolved resources by enhanced resolver
feat: improved html and css extraction
refactor: complete refactoring of all code
fix: issue for the option outputPath
fix: resolving issue by import styles directly from node_modules, e.g.: @import 'material-icons';
Changelog
1.3.2 (2022-02-10)
Changelog
1.3.0 (2022-02-07)
process.stdout
by output in terminal[base]
[path]
[ext]
by the option filenameChangelog
1.2.5 (2022-01-31)
htmlWebpackPlugin.options
in pug templateChangelog
1.2.4 (2022-01-28)