Commit 250e1a2e authored by Tom Darneix's avatar Tom Darneix
Browse files

Fix react-refresh

parent 08ee2ea5
This diff is collapsed.
......@@ -6,6 +6,7 @@ const { merge } = require('webpack-merge');
const {
getDevConfiguration,
devJscTransformConfiguration,
devRefreshJscTransformConfiguration,
} = require('centreon-frontend/packages/frontend-config/webpack/patch/dev');
const getBaseConfiguration = require('./webpack.config');
......@@ -63,7 +64,11 @@ const modules = [
];
module.exports = merge(
getBaseConfiguration(devJscTransformConfiguration),
getBaseConfiguration(
isServeMode
? devRefreshJscTransformConfiguration
: devJscTransformConfiguration,
),
getDevConfiguration(),
{
devServer: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment