Skip to content

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')
})

Clone this wiki locally