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
<!-- you can use a source image file with webpack alias,
4115
4122
in the bundle it will be auto replaced with the output asset filename -->
4116
4123
<img src="@images/star.svg">
4117
-
<span>Star</span>
4124
+
<!-- the `buttonText` variable is passed via query -->
4125
+
<span><%= buttonText %></span>
4118
4126
</button>
4119
4127
```
4120
4128
4121
4129
### Compile mode
4122
4130
4123
-
The `compile` is default mode fora template imported in JavaScript file.
4124
-
The processed templatein`compile` mode is a template function,
4125
-
which can be executed with passed variables in the runtime on client-side.
4131
+
The `compile` is the default mode forthe template imported in JavaScript file.
4132
+
The compiled template is a template function,
4133
+
which can be executed with passed variables in the runtime on the client-side in the browser.
4126
4134
4127
4135
For example:
4128
4136
@@ -4159,10 +4167,10 @@ _./partials/people.ejs_
4159
4167
4160
4168
#### Template engines that do support the `template function` on client-side
4161
4169
4162
-
- [eta](#loader-option-preprocessor-options-eta) - generates a fast small template function with runtime (~3KB) (**recommended**)\
4170
+
- [eta](#loader-option-preprocessor-options-eta) - generates a template function with runtime (~3KB)\
4171
+
`include` is supported
4172
+
- [ejs](#loader-option-preprocessor-options-ejs) - generates a fast smallest pure template function w/o runtime (**recommended** for use on client-side)\
4163
4173
`include` is supported
4164
-
- [ejs](#loader-option-preprocessor-options-ejs) - generates a fast small pure template function w/o runtime\
4165
-
`include` is NOT supported (yet)
4166
4174
- [handlebars](#loader-option-preprocessor-options-handlebars) - generates a precompiled template with runtime (~28KB)\
4167
4175
`include` is NOT supported (yet)
4168
4176
- [nunjucks](#loader-option-preprocessor-options-nunjucks) - generates a precompiled template with runtime (~41KB)\
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "html-bundler-webpack-plugin",
3
-
"version": "3.3.0",
3
+
"version": "3.4.0",
4
4
"description": "HTML bundler plugin for webpack handles a template as an entry point, extracts CSS and JS from their sources referenced in HTML, supports template engines like Eta, EJS, Handlebars, Nunjucks.",
0 commit comments