30 lines
653 B
JavaScript
30 lines
653 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const webpack = require('webpack')
|
||
|
const autoprefixer = require('autoprefixer');
|
||
|
|
||
|
module.exports = {
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{
|
||
|
test: /(\.js|\.jsx)$/,
|
||
|
exclude: /(node_modules)/,
|
||
|
loader: 'react-hot!babel'
|
||
|
}, {
|
||
|
test: /(\.scss|\.css)$/,
|
||
|
loader: 'style!css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['', '.jsx', '.scss', '.js', '.json']
|
||
|
},
|
||
|
watch: true,
|
||
|
postcss: [autoprefixer],
|
||
|
plugins: [
|
||
|
new webpack.DefinePlugin({
|
||
|
'process.env.NODE_ENV': JSON.stringify('test')
|
||
|
})
|
||
|
]
|
||
|
};
|