Last active
December 16, 2016 22:56
-
-
Save rnicholus/d32abc484345592bc1314e2ddb308f71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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