mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
|
|
|
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
const environment = require('./environment');
|
|
|
|
const isWebpackDevServer = process.env.WEBPACK_DEV_SERVER;
|
|
|
|
// plugins
|
|
if (isWebpackDevServer) {
|
|
environment.plugins.append(
|
|
'ReactRefreshWebpackPlugin',
|
|
new ReactRefreshWebpackPlugin({
|
|
overlay: {
|
|
sockPort: 3035
|
|
}
|
|
})
|
|
);
|
|
}
|
|
|
|
module.exports = environment.toWebpackConfig();
|