Explorar o código

Added missing hot module replacement plugin and entry points

Fela Maslen %!s(int64=7) %!d(string=hai) anos
pai
achega
a191c07761
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      webpack.config.js

+ 3 - 0
webpack.config.js

@@ -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
         ];