mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
30 lines
754 B
JavaScript
30 lines
754 B
JavaScript
import webpack from 'webpack';
|
|
import baseConfig from './webpack.config.base.babel';
|
|
|
|
const PORT = 3333;
|
|
|
|
export default {
|
|
...baseConfig,
|
|
debug: true,
|
|
devtool: '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.optimize.OccurrenceOrderPlugin(),
|
|
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')
|
|
})
|
|
]
|
|
}
|