1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 21:05:01 +00:00
mon-entreprise/source/webpack.dev.js
2019-07-08 11:40:21 +02:00

23 lines
541 B
JavaScript

const { map } = require('ramda')
const webpack = require('webpack')
const {
commonLoaders,
styleLoader,
HTMLPlugins,
default: common
} = require('./webpack.common.js')
module.exports = {
...common,
module: {
rules: [...commonLoaders(), styleLoader('style-loader')]
},
mode: 'development',
entry: map(entry => ['webpack-hot-middleware/client', entry], common.entry),
plugins: [
...common.plugins,
...HTMLPlugins(),
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
new webpack.HotModuleReplacementPlugin()
]
}