Skip to content

Commit 36bbd03

Browse files
committed
release 4.20.0
1 parent c867948 commit 36bbd03

File tree

3 files changed

+35
-30
lines changed

3 files changed

+35
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## 4.20.0-beta.0
3+
## 4.20.0
44

5-
- feat: add support for ESM data file
5+
- feat: add support for ESM data files
66
- chore: remove tests with Node.js version 18
77

88
## 4.19.2

README.npm.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,34 @@ npm install html-bundler-webpack-plugin --save-dev
2424

2525
## Highlights
2626

27-
- An [entry point](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-entry) is any HTML template. **Start from HTML or template**, not from JS.
28-
- **Automatically** processes templates found in the [entry directory](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-entry-path).
29-
- Build-in support for [template engines](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#template-engine): [Eta](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-eta), [EJS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-ejs), [Handlebars](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-handlebars), [Nunjucks](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-nunjucks), [Pug](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-pug), [Tempura](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-tempura), [TwigJS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-twig), [LiquidJS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#using-template-liquidjs).
30-
- Build-in support for **Markdown** `*.md` files in templates, see [Markdown demo](https://stackblitz.com/edit/markdown-to-html-webpack?file=webpack.config.js) in browser.
31-
32-
- **Resolve** [source files](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#loader-option-sources) of [`script`](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-js), [`style`](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-css)
27+
- An [entry point](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-entry) is any HTML template. **Start from HTML or template**, not from JS.
28+
- **Automatically** processes templates found in the [entry directory](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-entry#template-directory-reference).
29+
- Built-in support for [template engines](https://webdiscus.github.io/html-bundler-webpack-plugin/category/template-engines): [Eta](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/eta), [EJS](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/ejs), [Handlebars](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/handlebars), [Nunjucks](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/nunjucks), [Pug](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/pug), [Tempura](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/tempura), [TwigJS](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/twig), [LiquidJS](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/preprocessor/liquid).
30+
- Built-in support for **Markdown** `*.md` files in templates, see [Markdown demo](https://stackblitz.com/edit/markdown-to-html-webpack?file=webpack.config.js) in browser.
31+
- Allows to [pass data](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-entry#entrydescriptiondata) into a template.
32+
- **Resolve** [source files](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-sources) of [`scripts`](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-js), [`styles`](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-css), images and other assets in HTML:
3333
- `<link href="./style.scss" rel="stylesheet">`
3434
- `<script src="./app.ts" defer="defer"></script>`
3535
- `<link href="../images/favicon.svg" type="image/svg" rel=icon />`
36-
- `<img src="@images/pic.png" srcset="@images/pic400.png 1x, @images/pic800.png 2x" />`\
37-
Source files will be resolved, processed and auto-replaced with correct URLs in the generated HTML.
38-
- **Resolve** [route URLs](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-router) in `a.href`, useful for navigation in multi-pages.
39-
- **Inline** [JS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#recipe-inline-js), [CSS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#recipe-inline-css) and [Images](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#recipe-inline-image) into HTML. See [how to inline all resources](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#recipe-inline-all-assets-to-html) into single HTML file.
40-
- Supports the [HMR for CSS](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-css-hot) to update CSS in browser without a full reload.
41-
- Watches for changes in the [data file](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-entry-data) linked to the template in the plugin option.
42-
- Generates the [preload](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-preload) tags for fonts, images, video, scripts, styles.
43-
- Generates the [integrity](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#option-integrity) attribute in the `link` and `script` tags.
44-
- Generates the [favicons](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#favicons-bundler-plugin) of different sizes for various platforms.
45-
- You can create custom plugins using the provided [Plugin Hooks](https://github.com/webdiscus/html-bundler-webpack-plugin/blob/master/README.md#plugin-hooks-and-callbacks).
46-
47-
[GitHub](https://github.com/webdiscus/html-bundler-webpack-plugin)
36+
- `<img src="@img/pic.png" srcset="@img/pic2.png 1x, @img/pic3.png 2x" />`\
37+
Resolved assets will be processed and replaced with correct URLs in the generated HTML.
38+
- **Resolve** references to source files of fonts, images in CSS:
39+
- `@font-face { src: url('@fonts/monaco.woff2') ... }`
40+
- `background-image: url(../images/picture.png);`\
41+
Resolved assets will be processed and replaced with correct URLs in the generated CSS, without using [resolve-url-loader](https://github.com/bholloway/resolve-url-loader).
42+
- **Resolve** [route URLs](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-router) in `a.href`, useful for navigation in multi-pages.
43+
- **Inline** [JS](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/inline-js), [CSS](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/inline-css) and [Images](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/inline-images) into HTML. See [how to inline all resources](https://webdiscus.github.io/html-bundler-webpack-plugin/guides/inline-all-assets) into single HTML file.
44+
- Supports importing styles in JavaScript.
45+
- Supports styles used in `*.vue`.
46+
- Supports the [HMR for CSS](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-css) to update CSS in browser without a full reload.
47+
- Watches for changes in the [data file](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-entry#entrydescriptiondata) linked to the template in the plugin option.
48+
- Generates the [preload](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-preload) tags for fonts, images, video, scripts, styles.
49+
- Generates the [integrity](https://webdiscus.github.io/html-bundler-webpack-plugin/plugin-options-integrity) attribute in the `link` and `script` tags.
50+
- Generates the [favicons](https://webdiscus.github.io/html-bundler-webpack-plugin/Plugins/favicons) of different sizes for various platforms.
51+
- Minimizes generated HTML.
52+
- You can create custom plugins using the provided [Plugin Hooks](https://webdiscus.github.io/html-bundler-webpack-plugin/hooks-and-callbacks).
53+
54+
[>> GitHub](https://github.com/webdiscus/html-bundler-webpack-plugin)
4855

4956
## Documentation
5057

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
{
22
"name": "html-bundler-webpack-plugin",
3-
"version": "4.20.0-beta.7",
4-
"description": "Generates complete single-page or multi-page website from source assets. Build-in support for Markdown, Eta, EJS, Handlebars, Nunjucks, Pug. Alternative to html-webpack-plugin.",
3+
"version": "4.20.0",
4+
"description": "Generates complete single-page or multi-page website from source assets. Built-in support for Markdown, Eta, EJS, Handlebars, Nunjucks, Pug. Alternative to html-webpack-plugin.",
55
"keywords": [
66
"html",
77
"bundler",
88
"webpack",
99
"plugin",
1010
"loader",
11-
"entrypoint",
1211
"template",
13-
"markdown",
14-
"md",
1512
"ejs",
1613
"hbs",
1714
"handlebars",
1815
"nunjucks",
1916
"eta",
2017
"pug",
21-
"pugjs",
22-
"tempura",
2318
"twig",
24-
"twigjs",
19+
"markdown",
2520
"integrity",
26-
"js",
21+
"preload",
22+
"inline",
2723
"javascript",
2824
"style",
2925
"css",
30-
"scss"
26+
"scss",
27+
"favicons",
28+
"svg"
3129
],
3230
"license": "ISC",
3331
"author": "webdiscus (https://github.com/webdiscus)",

0 commit comments

Comments
 (0)