Skip to content

Commit 4485683

Browse files
committed
initial support for jade/pug templates
1 parent e9bc887 commit 4485683

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@angular/compiler-cli": "~2.3.1",
4747
"@angular/core": "~2.3.1",
4848
"@angular/tsc-wrapped": "~0.5.0",
49+
"apply-loader": "^0.1.0",
4950
"async": "^2.1.4",
5051
"autoprefixer": "^6.5.3",
5152
"chalk": "^1.1.3",
@@ -93,6 +94,8 @@
9394
"portfinder": "1.0.9",
9495
"postcss-discard-comments": "^2.0.4",
9596
"postcss-loader": "^0.9.1",
97+
"pug": "^2.0.0-beta6",
98+
"pug-loader": "^2.3.0",
9699
"quick-temp": "0.1.5",
97100
"raw-loader": "^0.5.1",
98101
"readline2": "0.1.1",

packages/angular-cli/models/webpack-build-common.ts

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export function getWebpackCommonConfig(
133133

134134
{ test: /\.(otf|ttf|woff|woff2)$/, loader: 'url-loader?limit=10000' },
135135
{ test: /\.(eot|svg)$/, loader: 'file-loader' }
136+
{ test: /\.(pug|jade)/, loaders: ['apply-loader', 'pug-loader']},
136137
].concat(extraRules)
137138
},
138139
plugins: [

0 commit comments

Comments
 (0)