You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,14 @@
18
18
The **HTML Bundler** generates static HTML or [template function](#template-in-js) from [various templates](#template-engine) containing source files of scripts, styles, images, fonts and other resources, similar to how it works in [Vite](https://vitejs.dev/guide/#index-html-and-project-root).
19
19
This plugin allows using a template file as an [entry point](#option-entry).
20
20
21
-
A template imported in JS will be compiled into [template function](#template-in-js). You can use the **template function** in JS to render the template with variables in runtime on the client-side in the browser.
21
+
The plugin resolves source files of assets in templates and replaces them with correct output URLs in the generated HTML.
22
+
The resolved assets will be processed via Webpack plugins/loaders and placed into the output directory.
23
+
You can use a relative path or Webpack alias to a source file.
22
24
25
+
A template imported in JS will be compiled into [template function](#template-in-js). You can use the **template function** in JS to render the template with variables in runtime on the client-side in the browser.
23
26
24
-
This plugin is an **advanced successor** to `html-webpack-plugin` and a replacement of the [plugins and loaders](#list-of-plugins).
25
27
26
-
> 📢 Please help promote this plugin on social networks so that developers know about this useful plugin.\
27
-
> Special Thanks to [Andrew Lisowski](https://twitter.com/HipsterSmoothie) for the tooltips in the video [www.youtube.com/@devtoolsfm](https://youtu.be/w4l89214zN4?si=x-eVXN-iLlOE_Gqy&t=3463).
28
+
This plugin is an **advanced replacer** of `html-webpack-plugin` and many other [plugins and loaders](#list-of-plugins).
28
29
29
30
<!--
30
31
<table align="center">
@@ -90,9 +91,7 @@ src/
90
91
-->
91
92
92
93
93
-
All source file paths in dependencies will be resolved and auto-replaced with correct URLs in the bundled output.
94
-
The resolved assets will be processed via Webpack plugins/loaders and placed into the output directory.
95
-
You can use a relative path or Webpack alias to a source file.
94
+
All source file paths in dependencies will be resolved and auto-replaced with correct URLs in the bundled output.
96
95
97
96
---
98
97
@@ -127,7 +126,7 @@ You can use a relative path or Webpack alias to a source file.
127
126
- Generates the [integrity](#option-integrity) attribute in the `link` and `script` tags.
128
127
- Generates the [favicons](#favicons-bundler-plugin) of different sizes for various platforms.
129
128
- You can create **own plugin** using the [Plugin Hooks](#plugin-hooks-and-callbacks).
130
-
- Over 500[tests](https://github.com/webdiscus/html-bundler-webpack-plugin/tree/master/test).
129
+
- Over 550[tests](https://github.com/webdiscus/html-bundler-webpack-plugin/tree/master/test).
131
130
132
131
See the [full list of features](#features).
133
132
@@ -139,38 +138,36 @@ Thank you to all our sponsors and patrons!
0 commit comments