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
+53-2Lines changed: 53 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -509,6 +509,7 @@ See [boilerplate](https://github.com/webdiscus/webpack-html-scss-boilerplate)
509
509
-[postprocess](#option-postprocess) (callback)
510
510
-[beforeEmit](#option-beforeEmit) (callback)
511
511
-[afterEmit](#option-afterEmit) (callback)
512
+
-[renderStage](#option-renderStage)
512
513
-[preload](#option-preload) (inject preload link tags)
513
514
-[integrity](#option-integrity) (inject [subresource integrity hash](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) into script and style tags)
514
515
-[minify](#option-minify) and [minifyOptions](#option-minify-options) (minification of generated HTML)
The [stage](https://webpack.js.org/api/compilation-hooks/#list-of-asset-processing-stages) to render output HTML in the [processAssets](https://webpack.js.org/api/compilation-hooks/#processassets) Webpack hook.
2415
+
The minimal possible stage for the rendering is `PROCESS_ASSETS_STAGE_SUMMARIZE`.
> To ensures that the rendering process will be run after all optimizations and after all other plugins
2447
+
> set the `renderStage:Infinity+1`.
2448
+
2449
+
> [!CAUTION]
2450
+
> Use this option only to order the sequence of asset processing across multiple plugins that use the same [processAssets](https://webpack.js.org/api/compilation-hooks/#processassets) hook.
2451
+
2452
+
2453
+
#### [↑ back to contents](#contents)
2454
+
2455
+
2405
2456
<a id="option-preload" name="option-preload"></a>
2406
2457
2407
2458
### `preload`
@@ -4844,7 +4895,7 @@ _./partials/people.ejs_
4844
4895
- [ejs](#loader-option-preprocessor-options-ejs) - generates a fast smallest pure template function w/o runtime (**recommended** for use on client-side)\
4845
4896
`include` is supported
4846
4897
- [handlebars](#loader-option-preprocessor-options-handlebars) - generates a precompiled template with runtime (~18KB)\
4847
-
`include` is NOT supported (yet)
4898
+
`include` is supported
4848
4899
- [nunjucks](#loader-option-preprocessor-options-nunjucks) - generates a precompiled template with runtime (~41KB)\
4849
4900
`include` is supported
4850
4901
- [twig](#loader-option-preprocessor-options-nunjucks) - generates a precompiled template with runtime (~110KB)\
@@ -6825,7 +6876,7 @@ The generated HTML will not contain templating comments.
6825
6876
6826
6877
## Also See
6827
6878
6828
-
- [ansis][ansis] - The Node.js lib for ANSI color styling of text in terminal
6879
+
- [ansis][ansis] - The Node.js library for ANSI colors and styles in terminal output
6829
6880
- [pug-loader][pug-loader] The Pug loader for Webpack
6830
6881
- [pug-plugin][pug-plugin] The Pug plugin for Webpack
0 commit comments