2016-07-16 02:06:10 +00:00
|
|
|
import webpack from 'webpack';
|
|
|
|
import baseConfig from './webpack.config.base';
|
2016-04-20 02:14:53 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
...baseConfig,
|
|
|
|
debug: true,
|
2016-08-15 17:04:36 +00:00
|
|
|
devtool: 'eval-source-map',
|
2016-04-20 02:14:53 +00:00
|
|
|
entry: [
|
|
|
|
...baseConfig.entry,
|
|
|
|
'webpack-hot-middleware/client?path=http://localhost:3333/__webpack_hmr',
|
|
|
|
'webpack/hot/only-dev-server'
|
|
|
|
],
|
|
|
|
output: {
|
|
|
|
...baseConfig.output,
|
2016-07-18 20:10:18 +00:00
|
|
|
publicPath: 'http://localhost:3333/build/'
|
2016-04-20 02:14:53 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
...baseConfig.plugins,
|
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
|
|
new webpack.NoErrorsPlugin(),
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
__DEV__: true,
|
2016-08-17 22:44:03 +00:00
|
|
|
'process.env.NODE_ENV': JSON.stringify('development'),
|
|
|
|
'process.env.INSOMNIA_ENV': JSON.stringify('development')
|
2016-04-20 02:14:53 +00:00
|
|
|
})
|
|
|
|
]
|
|
|
|
}
|