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
+34-68Lines changed: 34 additions & 68 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ By default all assets (`<img src="./image.png">`) are transpiled to their own mo
41
41
42
42
### `Caching`
43
43
44
-
If your application includes many HTML Components or certain HTML Components are of significant size, we highly recommend to use the [`cache-loader`](https://github.com/webpack-contrib/cache-loader) for persistent caching (faster rebuilds)
44
+
If your application includes many HTML Components or certain HTML Components are of significant size, we highly recommend to use the [`cache-loader`](https://github.com/webpack-contrib/cache-loader) for persistent caching (faster initial builds)
45
45
46
46
**webpack.config.js**
47
47
```js
@@ -69,6 +69,8 @@ If your application includes many HTML Components or certain HTML Components are
69
69
70
70
### `url`
71
71
72
+
It's possible to completely disable or filter certain URL's from resolving in case these assets shouldn't be handled by `webpack`. Protocol URL's like (`<img src="https://cnd.domain.com/image.png">`) are ignored by default
73
+
72
74
#### `{Boolean}`
73
75
74
76
**webpack.config.js**
@@ -161,6 +163,8 @@ If your application includes many HTML Components or certain HTML Components are
161
163
162
164
### `template`
163
165
166
+
When set to `true` the loader will export a template `{Function}` instead of a `{String}`. The `locals` param is configurable and defaults to `_`
167
+
164
168
#### `{Boolean}`
165
169
166
170
**file.html**
@@ -253,9 +257,10 @@ Set custom [options](https://github.com/posthtml/htmlnano#modules) for minificat
0 commit comments