insomnia/webpack/webpack.config.development.babel.js
Gregory Schier 05f4d4dae1 Webpack 2 and Yarn (#92)
* Version bump

* Fix version numbers

* Upgraded > WP2 and cleaned up a bunch

* CI to yarn

* Updated some deps

* Updated some modules
2017-02-26 13:12:51 -08:00

29 lines
752 B
JavaScript

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