Skip to content

Commit 9904718

Browse files
committed
feat(Pug): add watchFiles.includes and watchFiles.excludes options to allow watch specifically external file
1 parent 5488595 commit 9904718

12 files changed

Lines changed: 447 additions & 80 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change log
22

3+
## 3.14.0 (2024-05-31)
4+
5+
- feat(Pug): add `watchFiles.includes` and `watchFiles.excludes` options to allow watch specifically external file,
6+
e.g. *.md file included via Pug filter from any location outer project directory
7+
38
## 3.13.0 (2024-05-26)
49

510
- feat: add resolving the url() value in the style attribute:

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
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).
1919
This plugin allows using a template file as an [entry point](#option-entry).
2020

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.
2224

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.
2326

24-
This plugin is an **advanced successor** to `html-webpack-plugin` and a replacement of the [plugins and loaders](#list-of-plugins).
2527

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).
2829

2930
<!--
3031
<table align="center">
@@ -90,9 +91,7 @@ src/
9091
-->
9192

9293

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.
9695

9796
---
9897

@@ -127,7 +126,7 @@ You can use a relative path or Webpack alias to a source file.
127126
- Generates the [integrity](#option-integrity) attribute in the `link` and `script` tags.
128127
- Generates the [favicons](#favicons-bundler-plugin) of different sizes for various platforms.
129128
- 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).
131130

132131
See the [full list of features](#features).
133132

@@ -139,38 +138,36 @@ Thank you to all our sponsors and patrons!
139138
<table align="center">
140139
<tr align="center" valign="top" style="border: 0">
141140
<td style="border: 0"><a href="https://www.jetbrains.com/">
142-
<img src="https://avatars.githubusercontent.com/u/878437?s=72&v=4" title="JetBrains" alt="JetBrains">
141+
<img src="https://avatars.githubusercontent.com/u/878437?s=50&v=4" title="JetBrains" alt="JetBrains">
143142
<p>JetBrains</p>
144143
</a></td>
145144
<td style="border: 0"><a href="https://github.com/getsentry">
146-
<img src="https://avatars.githubusercontent.com/u/1396951?s=72&amp;v=4" title="Sentry" alt="Sentry">
145+
<img src="https://avatars.githubusercontent.com/u/1396951?s=50&amp;v=4" title="Sentry" alt="Sentry">
147146
<p>Sentry</p>
148147
</a></td>
149148
<td style="border: 0"><a href="https://github.com/stackaid">
150-
<img src="https://avatars.githubusercontent.com/u/84366591?s=72&amp;v=4" title="StackAid" alt="StackAid">
149+
<img src="https://avatars.githubusercontent.com/u/84366591?s=50&amp;v=4" title="StackAid" alt="StackAid">
151150
<p>StackAid</p>
152151
</a></td>
153152
<td style="border: 0"><a href="https://www.patreon.com/user?u=96645548">
154-
<img src="https://c10.patreonusercontent.com/4/patreon-media/p/user/96645548/020234154757463b939824efe62db137/eyJ3IjoyMDB9/1.jpeg?token-time=2145916800&token-hash=GYnR3xvy7qBr2w1CihOfDOq87nOr4AbuW0ytvwg7Kgs%3D" width="72" title="Buckley Robinson" alt="patron" style="max-width: 100%;">
155-
<p>Buckley Robinson</p>
153+
<img src="https://c10.patreonusercontent.com/4/patreon-media/p/user/96645548/020234154757463b939824efe62db137/eyJ3IjoyMDB9/1.jpeg?token-time=2145916800&token-hash=GYnR3xvy7qBr2w1CihOfDOq87nOr4AbuW0ytvwg7Kgs%3D" width="50" title="Buckley Robinson" alt="patron" style="max-width: 100%;">
154+
<p>Buckley<br>Robinson</p>
156155
</a></td>
157156
<td style="border: 0"><a href="https://github.com/pirang">
158-
<img src="https://avatars.githubusercontent.com/u/6986749?s=72&amp;v=4" title="Pirang" alt="Pirang">
157+
<img src="https://avatars.githubusercontent.com/u/6986749?s=50&amp;v=4" title="Pirang" alt="Pirang">
159158
<p>Pirang</p>
160159
</a></td>
161160
<td style="border: 0"><a href="https://github.com/MarcelRobitaille">
162-
<img src="https://avatars.githubusercontent.com/u/8503756?s=72&amp;v=4" title="Marcel Robitaille" alt="Marcel Robitaille">
163-
<p>Marcel Robitaille</p>
161+
<img src="https://avatars.githubusercontent.com/u/8503756?s=50&amp;v=4" title="Marcel Robitaille" alt="Marcel Robitaille">
162+
<p>Marcel<br>Robitaille</p>
164163
</a></td>
165-
</tr>
166-
<tr align="center" valign="top" style="border: 0">
167164
<td style="border: 0"><a href="https://github.com/kannwism">
168-
<img src="https://avatars.githubusercontent.com/u/18029781?s=72&amp;v=4" width="72" title="Marian Kannwischer (kannwism)" alt="patron" style="max-width: 100%;">
169-
<p>Marian Kannwischer</p>
165+
<img src="https://avatars.githubusercontent.com/u/18029781?s=50&amp;v=4" width="50" title="Marian Kannwischer (kannwism)" alt="patron" style="max-width: 100%;">
166+
<p>Marian<br>Kannwischer</p>
170167
</a></td>
171168
<td style="border: 0"><a href="https://www.patreon.com/user?u=96645548">
172-
<img src="https://c10.patreonusercontent.com/4/patreon-media/p/user/43568167/0ef77126597d460c9505bdd0aea2eea9/eyJ3IjoyMDB9/1.png?token-time=2145916800&token-hash=7izh1FZTToAqf4Qks3Qrk8YcNbGymF-sBi0hkK_aJO8%3D" width="72" title="Raymond Ackloo" alt="patron" style="max-width: 100%;">
173-
<p>Raymond Ackloo</p>
169+
<img src="https://c10.patreonusercontent.com/4/patreon-media/p/user/43568167/0ef77126597d460c9505bdd0aea2eea9/eyJ3IjoyMDB9/1.png?token-time=2145916800&token-hash=7izh1FZTToAqf4Qks3Qrk8YcNbGymF-sBi0hkK_aJO8%3D" width="50" title="Raymond Ackloo" alt="patron" style="max-width: 100%;">
170+
<p>Raymond<br>Ackloo</p>
174171
</a></td>
175172
</tr>
176173
</table>

0 commit comments

Comments
 (0)