File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ import { NamedModulesPlugin } from 'webpack' ;
2+
13import { WebpackConfigOptions } from '../webpack-config' ;
24
35export const getDevConfig = function ( _wco : WebpackConfigOptions ) {
4- return { } ;
6+ return {
7+ plugins : [ new NamedModulesPlugin ( ) ]
8+ } ;
59} ;
Original file line number Diff line number Diff line change @@ -141,6 +141,9 @@ class JsonWebpackSerializer {
141141 case webpack . NoEmitOnErrorsPlugin :
142142 this . _addImport ( 'webpack' , 'NoEmitOnErrorsPlugin' ) ;
143143 break ;
144+ case webpack . NamedModulesPlugin :
145+ this . _addImport ( 'webpack' , 'NamedModulesPlugin' ) ;
146+ break ;
144147 case ( < any > webpack ) . HashedModuleIdsPlugin :
145148 this . _addImport ( 'webpack' , 'HashedModuleIdsPlugin' ) ;
146149 break ;
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ export default Task.extend({
7575 ui . writeLine ( ' for information on working with HMR for Webpack.' ) ;
7676 entryPoints . push ( 'webpack/hot/dev-server' ) ;
7777 webpackConfig . plugins . push ( new webpack . HotModuleReplacementPlugin ( ) ) ;
78- webpackConfig . plugins . push ( new webpack . NamedModulesPlugin ( ) ) ;
7978 if ( serveTaskOptions . extractCss ) {
8079 ui . writeLine ( oneLine `
8180 ${ 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