@elliemae/pui-cli 6.0.0-beta.51 → 6.0.0-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
-
const
|
|
2
|
+
const { HotModuleReplacementPlugin } = require('webpack');
|
|
3
3
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
4
|
const CircularDependencyPlugin = require('circular-dependency-plugin');
|
|
5
5
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
@@ -75,13 +75,6 @@ const devConfig = {
|
|
|
75
75
|
|
|
76
76
|
// Add development plugins
|
|
77
77
|
plugins: [
|
|
78
|
-
new webpack.ProgressPlugin(),
|
|
79
|
-
new webpack.HotModuleReplacementPlugin(), // Tell webpack we want hot reloading
|
|
80
|
-
new ReactRefreshWebpackPlugin({
|
|
81
|
-
overlay: {
|
|
82
|
-
sockIntegration: 'whm',
|
|
83
|
-
},
|
|
84
|
-
}),
|
|
85
78
|
new HtmlWebpackPlugin({
|
|
86
79
|
scriptLoading: 'module',
|
|
87
80
|
inject: !isAppLoaderEnabled(), // Inject all files that are generated by webpack, e.g. bundle.js
|
|
@@ -117,4 +110,14 @@ const devConfig = {
|
|
|
117
110
|
},
|
|
118
111
|
};
|
|
119
112
|
|
|
120
|
-
|
|
113
|
+
const config = smp.wrap(baseConfigFactory(devConfig));
|
|
114
|
+
config.plugins = config.plugins.concat([
|
|
115
|
+
new HotModuleReplacementPlugin(),
|
|
116
|
+
new ReactRefreshWebpackPlugin({
|
|
117
|
+
overlay: {
|
|
118
|
+
sockIntegration: 'whm',
|
|
119
|
+
},
|
|
120
|
+
}),
|
|
121
|
+
]);
|
|
122
|
+
|
|
123
|
+
module.exports = config;
|