mon-entreprise/mon-entreprise/webpack.dev.js

22 lines
597 B
JavaScript

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