2019-03-19 17:50:16 +00:00
|
|
|
const { map } = require('ramda')
|
2018-07-12 08:09:41 +00:00
|
|
|
const webpack = require('webpack')
|
2019-07-08 09:13:51 +00:00
|
|
|
const {
|
|
|
|
commonLoaders,
|
|
|
|
styleLoader,
|
|
|
|
HTMLPlugins,
|
|
|
|
default: common
|
|
|
|
} = require('./webpack.common.js')
|
2018-07-17 15:36:27 +00:00
|
|
|
|
2018-03-01 18:39:36 +00:00
|
|
|
module.exports = {
|
|
|
|
...common,
|
2019-03-19 17:50:16 +00:00
|
|
|
module: {
|
|
|
|
rules: [...commonLoaders(), styleLoader('style-loader')]
|
|
|
|
},
|
2018-03-01 19:30:57 +00:00
|
|
|
mode: 'development',
|
2019-03-19 17:50:16 +00:00
|
|
|
entry: map(entry => ['webpack-hot-middleware/client', entry], common.entry),
|
2018-03-01 18:39:36 +00:00
|
|
|
plugins: [
|
2018-07-04 17:45:43 +00:00
|
|
|
...common.plugins,
|
2019-07-08 09:13:51 +00:00
|
|
|
...HTMLPlugins(),
|
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
|
|
|
]
|
|
|
|
}
|