forked from PatrickJS/angular-webpack-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
How to add .pug support
Vadim edited this page Aug 31, 2016
·
3 revisions
npm install --save-dev pug pug-html-loader
module.exports = {
module: {
loaders: [
{
test: /\.pug$/,
loader: 'pug-html-loader'
}
]
}
}@Component({
selector: 'app',
template: require('./file.pug')
})enjoy — AngularClass
Learn AngularJS, Angular 2, and Modern Web Development from the best. Looking for corporate Angular training, want to host us, or Angular consulting? patrick@angularclass.com
