Skip to content

Instantly share code, notes, and snippets.

@rnicholus
Last active December 16, 2016 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnicholus/d32abc484345592bc1314e2ddb308f71 to your computer and use it in GitHub Desktop.
Save rnicholus/d32abc484345592bc1314e2ddb308f71 to your computer and use it in GitHub Desktop.
const ExtractTextPlugin = require('extract-text-webpack-plugin')
module.exports = {
module: {
loaders: [
{
test: /\.js/,
loader: 'babel',
exclude: /node_modules/,
query: {
plugins: ['transform-decorators-legacy'],
presets: ['latest']
}
},
{
test: /\.less$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!less-loader')
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment