2018-07-12 08:09:41 +00:00
|
|
|
const { map, concat } = require('ramda')
|
|
|
|
const webpack = require('webpack')
|
|
|
|
const common = require('./webpack.common.js')
|
2018-07-17 15:36:27 +00:00
|
|
|
|
2018-03-01 18:39:36 +00:00
|
|
|
module.exports = {
|
|
|
|
...common,
|
2018-03-01 19:30:57 +00:00
|
|
|
mode: 'development',
|
2018-09-25 15:05:21 +00:00
|
|
|
entry: map(concat(['webpack-hot-middleware/client']), common.entry),
|
2018-03-01 18:39:36 +00:00
|
|
|
plugins: [
|
2018-07-04 17:45:43 +00:00
|
|
|
...common.plugins,
|
2018-09-25 15:05:21 +00:00
|
|
|
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
|
|
|
|
new webpack.HotModuleReplacementPlugin()
|
2018-03-01 18:39:36 +00:00
|
|
|
]
|
|
|
|
}
|