1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/config/webpack/development.js

21 lines
500 B
JavaScript
Raw Normal View History

process.env.NODE_ENV = process.env.NODE_ENV || 'development';
2020-10-27 09:41:16 +01:00
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
const environment = require('./environment');
2020-10-27 09:41:16 +01:00
const isWebpackDevServer = process.env.WEBPACK_DEV_SERVER;
// plugins
if (isWebpackDevServer) {
environment.plugins.append(
'ReactRefreshWebpackPlugin',
new ReactRefreshWebpackPlugin({
overlay: {
sockPort: 3035
}
})
);
}
module.exports = environment.toWebpackConfig();