Commit b07f631 1 parent c298b25 commit b07f631 Copy full SHA for b07f631
File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { NamedModulesPlugin } from 'webpack' ;
2
+
1
3
import { WebpackConfigOptions } from '../webpack-config' ;
2
4
3
5
export const getDevConfig = function ( _wco : WebpackConfigOptions ) {
4
- return { } ;
6
+ return {
7
+ plugins : [ new NamedModulesPlugin ( ) ]
8
+ } ;
5
9
} ;
Original file line number Diff line number Diff line change @@ -141,6 +141,9 @@ class JsonWebpackSerializer {
141
141
case webpack . NoEmitOnErrorsPlugin :
142
142
this . _addImport ( 'webpack' , 'NoEmitOnErrorsPlugin' ) ;
143
143
break ;
144
+ case webpack . NamedModulesPlugin :
145
+ this . _addImport ( 'webpack' , 'NamedModulesPlugin' ) ;
146
+ break ;
144
147
case ( < any > webpack ) . HashedModuleIdsPlugin :
145
148
this . _addImport ( 'webpack' , 'HashedModuleIdsPlugin' ) ;
146
149
break ;
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ export default Task.extend({
75
75
ui . writeLine ( ' for information on working with HMR for Webpack.' ) ;
76
76
entryPoints . push ( 'webpack/hot/dev-server' ) ;
77
77
webpackConfig . plugins . push ( new webpack . HotModuleReplacementPlugin ( ) ) ;
78
- webpackConfig . plugins . push ( new webpack . NamedModulesPlugin ( ) ) ;
79
78
if ( serveTaskOptions . extractCss ) {
80
79
ui . writeLine ( oneLine `
81
80
${ chalk . yellow ( 'NOTICE' ) } (HMR) does not allow for CSS hot reload when used
You can’t perform that action at this time.
0 commit comments