Skip to content

Commit 136cdf6

Browse files
committed
update docs about template loader
1 parent dfbd560 commit 136cdf6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/configurations/pre-processors.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ npm install coffee-loader --save-dev
3434

3535
### Templates
3636

37-
Processing templates is a little different, because most Webpack template loaders such as `jade-loader` returns a template function instead of compiled HTML string. So instead of using `jade-loader`, we will use `template-html-loader` plus the raw `jade` compiler:
37+
Processing templates is a little different, because most Webpack template loaders such as `jade-loader` returns a template function instead of compiled HTML string. Instead of using `jade-loader`, we can just install the original `jade`:
3838

3939
``` bash
40-
npm install template-html-loader jade --save-dev
40+
npm install jade --save-dev
4141
```
4242

4343
``` html
@@ -47,6 +47,8 @@ div
4747
</template>
4848
```
4949

50+
> **Important:** If you are using `vue-loader@<8.2.0`, you also need to install `template-html-loader`.
51+
5052
### Inline Loader Requests
5153

5254
You can use [Webpack loader requests](https://webpack.github.io/docs/loaders.html#introduction) in the `lang` attribute:

0 commit comments

Comments
 (0)