html-bundler-webpack-plugin
Advanced tools
Changelog
1.3.0 (2023-02-23)
watchFiles
option to configure paths and files to watch file changesChangelog
1.2.1 (2023-02-22)
Changelog
1.2.0 (2023-02-21)
root
of the Eta preprocessor as current working dir by defaults,
now you can use the template root path, e.g.:
<%~ includeFile('/src/views/partials/header') %>
async
preprocessor for Etaback to contents
navigation in readme, improve readmeChangelog
1.1.1 (2023-02-19)
Changelog
1.1.0 (2023-02-18)
async
and sync
preprocessor, the preprocessor should return a string or a promise.
This can be used for async templating engines like LiquidJs
, EJS
, Nunjucks
.href
attribute in the SVG <image>
and <use>
tags, by defaults
<svg><image href="image.png"></image></svg> <svg><use href="icons.svg#home"></use></svg>
Changelog
1.0.0 (2023-02-14) Stable release
Defaults, HTML templates defined in the entry are processed via Eta (same EJS syntax) templating engine. If you have pure HTML file you can disable this processing to save the compilation time:
{
test: /\.html$/,
loader: HtmlBundlerPlugin.loader,
options: {
preprocessor: false, // <= disable default processing
},
},
module.rule
.module.rule
,
then the default template loader will be added automatically:
{
test: /\.(html|ejs|eta)$/,
loader: HtmlBundlerPlugin.loader,
},
Eta
templating engine (smaller and faster alternative to EJS
with same syntax) as the default preprocessor.
If no preprocessor option is specified, Eta is used in the preprocessor.minify
optionChangelog
0.10.1 (2023-02-12)
Changelog
0.10.0 (2023-02-11)
Changelog
0.9.1 (2023-02-08)
<use href="./icons.svg#home"></use>