2016-07-16 02:06:10 +00:00
|
|
|
import webpack from 'webpack';
|
2016-08-23 19:43:01 +00:00
|
|
|
import baseConfig from './webpack.config.base.babel';
|
2016-04-20 02:14:53 +00:00
|
|
|
|
2016-04-20 06:09:46 +00:00
|
|
|
export default {
|
|
|
|
...baseConfig,
|
2016-08-15 17:04:36 +00:00
|
|
|
devtool: 'source-map',
|
2016-04-20 06:09:46 +00:00
|
|
|
plugins: [
|
|
|
|
...baseConfig.plugins,
|
2016-11-16 18:16:55 +00:00
|
|
|
// NOTE: Uglification breaks everything! So many problems for some reason
|
2016-11-01 17:50:31 +00:00
|
|
|
// new webpack.optimize.UglifyJsPlugin(),
|
2016-04-20 06:09:46 +00:00
|
|
|
new webpack.DefinePlugin({
|
|
|
|
__DEV__: false,
|
2016-08-17 22:44:03 +00:00
|
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
|
|
'process.env.INSOMNIA_ENV': JSON.stringify('production')
|
2016-04-20 06:09:46 +00:00
|
|
|
})
|
|
|
|
]
|
|
|
|
}
|