File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,10 @@ class ConfigGenerator {
413
413
const outputPath = this . webpackConfig . outputPath . replace ( this . webpackConfig . getContext ( ) + '/' , '' ) ;
414
414
plugins . push ( new AssetsOutputDisplayPlugin ( outputPath , friendlyErrorsPlugin ) ) ;
415
415
416
+ if ( this . webpackConfig . useDevServer ( ) ) {
417
+ plugins . push ( new webpack . HotModuleReplacementPlugin ( ) )
418
+ }
419
+
416
420
return plugins ;
417
421
}
418
422
@@ -463,6 +467,7 @@ class ConfigGenerator {
463
467
// avoid CORS concerns trying to load things like fonts from the dev server
464
468
headers : { 'Access-Control-Allow-Origin' : '*' } ,
465
469
// required by FriendlyErrorsWebpackPlugin
470
+ hot : true ,
466
471
quiet : true ,
467
472
compress : true ,
468
473
historyApiFallback : true ,
You can’t perform that action at this time.
0 commit comments