File tree 3 files changed +2
-11
lines changed
3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 140
140
"@types/rimraf" : " 0.0.25-alpha" ,
141
141
"@types/semver" : " ^5.3.30" ,
142
142
"@types/source-map" : " ^0.5.0" ,
143
- "@types/webpack" : " ^1.12.22-alpha " ,
143
+ "@types/webpack" : " 2.2.0 " ,
144
144
"chai" : " ^3.5.0" ,
145
145
"conventional-changelog" : " ^1.1.0" ,
146
146
"dtsgenerator" : " ^0.7.1" ,
Original file line number Diff line number Diff line change @@ -4,16 +4,6 @@ import {CompressionPlugin} from '../lib/webpack/compression-plugin';
4
4
const autoprefixer = require ( 'autoprefixer' ) ;
5
5
const postcssDiscardComments = require ( 'postcss-discard-comments' ) ;
6
6
7
- declare module 'webpack' {
8
- export interface LoaderOptionsPlugin { }
9
- export interface LoaderOptionsPluginStatic {
10
- new ( optionsObject : any ) : LoaderOptionsPlugin ;
11
- }
12
- interface Webpack {
13
- LoaderOptionsPlugin : LoaderOptionsPluginStatic ;
14
- }
15
- }
16
-
17
7
export const getWebpackProdConfigPartial = function ( projectRoot : string ,
18
8
appConfig : any ,
19
9
sourcemap : boolean ,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ export default Task.extend({
58
58
ui . writeLine ( ' for information on working with HMR for Webpack.' ) ;
59
59
entryPoints . push ( 'webpack/hot/dev-server' ) ;
60
60
config . plugins . push ( new webpack . HotModuleReplacementPlugin ( ) ) ;
61
+ config . plugins . push ( new webpack . NamedModulesPlugin ( ) ) ;
61
62
if ( serveTaskOptions . extractCss ) {
62
63
ui . writeLine ( oneLine `
63
64
${ 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