Skip to content

Commit a195c34

Browse files
committed
docs: Update template-option documentation
1 parent 40b410e commit a195c34

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/template-option.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## History
44

5-
The version 2.x which was introduced last year (Sep, 2015) changed the way the template is processed.
5+
The version 2.x which was introduced 2015 changed the way the template is processed.
66
Instead of forcing all users to use the [blueimp](https://github.com/blueimp/JavaScript-Templates) template engine it allowed to use any webpack loader:
77

88
* [pug](https://github.com/pugjs/pug-loader)
@@ -19,7 +19,8 @@ There are three ways to set the loader:
1919

2020
## 1) Don't set any loader
2121

22-
By default (if you don't specify any loader in any way) a [fallback lodash loader](https://github.com/ampedandwired/html-webpack-plugin/blob/master/lib/loader.js) kicks in.
22+
By default (if you don't specify any loader in any way) a [fallback ejs loader](https://github.com/jantimon/html-webpack-plugin/blob/master/lib/loader.js) kicks in.
23+
Please note that this loader does not support the full ejs syntax as it is based of [lodash template](https://lodash.com/docs/#template).
2324

2425
```js
2526
{
@@ -37,8 +38,8 @@ Be aware, using `.html` as your template extention may unexpectedly trigger anot
3738

3839
```js
3940
new HtmlWebpackPlugin({
40-
// For details on `!!` see https://webpack.github.io/docs/loaders.html#loader-order
41-
template: '!!handlebars!src/index.hbs'
41+
// For details on `!!` see https://webpack.js.org/concepts/loaders/#inline
42+
template: '!!handlebars-loader!src/index.hbs'
4243
})
4344
```
4445

@@ -63,7 +64,7 @@ new HtmlWebpackPlugin({
6364
```
6465

6566
However this also means that in the following example webpack will use the [html loader for your template](https://webpack.js.org/loaders/html-loader/).
66-
This will **cause html minification** and it will also **disable the ejs fallback** loader.
67+
This will **cause html minification** and it will also **disable the ejs/lodash fallback** loader.
6768

6869
```js
6970
{

0 commit comments

Comments
 (0)