This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ module.exports = env => {
42
42
uglify, // --env.uglify
43
43
report, // --env.report
44
44
sourceMap, // --env.sourceMap
45
+ hmr, // --env.hmr
45
46
} = env ;
46
47
47
48
const appFullPath = resolve ( projectRoot , appPath ) ;
@@ -265,5 +266,9 @@ module.exports = env => {
265
266
} ) ) ;
266
267
}
267
268
269
+ if ( hmr ) {
270
+ config . plugins . push ( new HotModuleReplacementPlugin ( ) ) ;
271
+ }
272
+
268
273
return config ;
269
274
} ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ module.exports = env => {
40
40
uglify, // --env.uglify
41
41
report, // --env.report
42
42
sourceMap, // --env.sourceMap
43
+ hmr, // --env.hmr
43
44
} = env ;
44
45
45
46
const appFullPath = resolve ( projectRoot , appPath ) ;
@@ -227,5 +228,10 @@ module.exports = env => {
227
228
} ) ) ;
228
229
}
229
230
231
+ if ( hmr ) {
232
+ config . plugins . push ( new HotModuleReplacementPlugin ( ) ) ;
233
+ }
234
+
235
+
230
236
return config ;
231
237
} ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ module.exports = env => {
40
40
uglify, // --env.uglify
41
41
report, // --env.report
42
42
sourceMap, // --env.sourceMap
43
+ hmr, // --env.hmr
43
44
} = env ;
44
45
45
46
const appFullPath = resolve ( projectRoot , appPath ) ;
@@ -237,5 +238,10 @@ module.exports = env => {
237
238
} ) ) ;
238
239
}
239
240
241
+ if ( hmr ) {
242
+ config . plugins . push ( new HotModuleReplacementPlugin ( ) ) ;
243
+ }
244
+
245
+
240
246
return config ;
241
247
} ;
You can’t perform that action at this time.
0 commit comments