1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-10 15:05:01 +00:00
mon-entreprise/mon-entreprise/webpack.dev.js

25 lines
567 B
JavaScript

/* eslint-env node */
const { map } = require('ramda')
const webpack = require('webpack')
const {
HTMLPlugins,
styleLoader,
commonLoaders,
default: common,
} = require('./webpack.common')
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(),
],
}