mon-entreprise/source/webpack.dev.js

24 lines
541 B
JavaScript
Raw Normal View History

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
module.exports = {
...common,
module: {
rules: [...commonLoaders(), styleLoader('style-loader')]
},
2018-03-01 19:30:57 +00:00
mode: 'development',
entry: map(entry => ['webpack-hot-middleware/client', entry], common.entry),
plugins: [
...common.plugins,
2019-07-08 09:13:51 +00:00
...HTMLPlugins(),
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
new webpack.HotModuleReplacementPlugin()
]
}