insomnia/webpack/webpack.config.development.babel.js
Gregory Schier 6a7a0b07bc try
2016-08-23 12:43:01 -07:00

28 lines
718 B
JavaScript

import webpack from 'webpack';
import baseConfig from './webpack.config.base.babel';
export default {
...baseConfig,
debug: true,
devtool: 'eval-source-map',
entry: [
...baseConfig.entry,
'webpack-hot-middleware/client?path=http://localhost:3333/__webpack_hmr',
'webpack/hot/only-dev-server'
],
output: {
...baseConfig.output,
publicPath: 'http://localhost:3333/build/'
},
plugins: [
...baseConfig.plugins,
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({
__DEV__: true,
'process.env.NODE_ENV': JSON.stringify('development'),
'process.env.INSOMNIA_ENV': JSON.stringify('development')
})
]
}