15 lines
389 B
JavaScript
15 lines
389 B
JavaScript
const { map, concat } = require('ramda')
|
|
const webpack = require('webpack')
|
|
const common = require('./webpack.common.js')
|
|
|
|
module.exports = {
|
|
...common,
|
|
mode: 'development',
|
|
entry: map(concat(['webpack-hot-middleware/client']), common.entry),
|
|
plugins: [
|
|
...common.plugins,
|
|
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
|
|
new webpack.HotModuleReplacementPlugin()
|
|
]
|
|
}
|