'use strict'

const { extractor } = require('./webpack.vars')

module.exports = {
  resolve: {
    extensions: ['.styl']
  },
  module: {
    loaders: [
      {
        test: /\.styl$/,
        loader: extractor.extract('style', [
          'css-loader?importLoaders=1&modules',
          'postcss-loader',
          'stylus-loader'
        ])
      }
    ]
  },
  stylus: {
    use: [ require('cozy-ui/stylus')() ]
  }
}

@@ -269,16 +269,56 @@
 &modules
+&localIdentName=%5Blocal%5D--%5Bhash:base64:5%5D
 ',%0A     

add hash to css classes