|
|
@@ -53,6 +53,7 @@ function getPlugins() {
|
|
|
if (__DEV__) {
|
|
|
return [
|
|
|
...common,
|
|
|
+ new webpack.HotModuleReplacementPlugin(),
|
|
|
new Dotenv()
|
|
|
];
|
|
|
}
|
|
|
@@ -71,6 +72,8 @@ function getEntry() {
|
|
|
|
|
|
if (__DEV__) {
|
|
|
return [
|
|
|
+ 'webpack/hot/only-dev-server',
|
|
|
+ 'webpack-hot-middleware/client?reload=true',
|
|
|
'react-hot-loader/patch',
|
|
|
...common
|
|
|
];
|