Skip to content

Commit 123f4e2

Browse files
committed
use pug instead of jade
1 parent 70ca3ff commit 123f4e2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/en/configurations/pre-processors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ 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` return a template function instead of a compiled HTML string. Instead of using `jade-loader`, we can just install the original `jade`:
37+
Processing templates is a little different, because most Webpack template loaders such as `pug-loader` return a template function instead of a compiled HTML string. Instead of using `pug-loader`, we can just install the original `pug`:
3838

3939
``` bash
40-
npm install jade --save-dev
40+
npm install pug --save-dev
4141
```
4242

4343
``` html
44-
<template lang="jade">
44+
<template lang="pug">
4545
div
4646
h1 Hello world!
4747
</template>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
"extract-text-webpack-plugin": "^1.0.1",
6262
"file-loader": "^0.8.5",
6363
"inject-loader": "^2.0.1",
64-
"jade": "^1.11.0",
6564
"jsdom": "^9.2.1",
6665
"memory-fs": "^0.3.0",
6766
"mkdirp": "^0.5.1",
6867
"mocha": "^2.2.5",
6968
"node-libs-browser": "^1.0.0",
7069
"postcss": "^5.0.21",
70+
"pug": "^2.0.0-beta6",
7171
"rimraf": "^2.4.0",
7272
"stylus": "^0.54.5",
7373
"stylus-loader": "^2.0.0",

test/fixtures/pre.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body
66
color primary-color
77
</style>
88

9-
<template lang="jade">
9+
<template lang="pug">
1010
div
1111
h1 This is the app
1212
comp-a

test/fixtures/template-import.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<template lang="jade" src="./template-import.jade"></template>
1+
<template lang="pug" src="./template-import.pug"></template>

0 commit comments

Comments
 (0)