react-toolbox/webpack.config.test.js

29 lines
680 B
JavaScript
Raw Normal View History

const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
module.exports = {
module: {
loaders: [
{
2016-04-10 22:04:49 +03:00
test: /\.js$/,
exclude: /(node_modules)/,
2015-10-29 08:33:21 +03:00
loader: 'babel'
}, {
test: /\.(scss|css)$/,
loader: 'style!css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'
}
]
},
resolve: {
2016-04-10 22:04:49 +03:00
extensions: ['', '.scss', '.js', '.json'],
2016-04-09 21:34:34 +03:00
packageMains: ['browser', 'web', 'browserify', 'main', 'style']
},
watch: true,
postcss: [autoprefixer],
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('test')
})
]
};