Skip to content

How to add .pug support

Shyam-Chen edited this page Jun 3, 2016 · 3 revisions

npm install pug-loader

module.exports = {
  module: {
    loaders: [
      { test: /\.pug$/, loader: 'pug-loader' }
    ]
  }
}
@Component({
  selector: 'app',
  template: require('./file.pug')
})

Clone this wiki locally