Skip to content

How to include stylus support

Vadim edited this page Aug 31, 2016 · 1 revision

npm install --save-dev stylus stylus-loader

module.exports = {
  module: {
    loaders: [
      {
        test: /\.styl$/,
        loaders: ['css-to-string', 'css?sourceMap', 'resolve-url', 'stylus']
      },
    ]
  }
}
@Component({
  styleUrls: [
    './app.style.styl'
  ],
})