File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ module.exports = {
58
58
} ) ,
59
59
new ExtractTextPlugin ( '[name].[chunkhash].css' ) ,
60
60
] ,
61
+ performance : {
62
+ hints : false ,
63
+ } ,
61
64
node : {
62
65
global : true ,
63
66
crypto : 'empty' ,
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
const helpers = require ( './helpers' ) ;
3
- const webpack = require ( 'webpack' ) ;
4
3
5
- // const {CheckerPlugin} = require('awesome-typescript-loader');
4
+ const DefinePlugin = require ( 'webpack/lib/DefinePlugin' ) ;
5
+ const LoaderOptionsPlugin = require ( 'webpack/lib/LoaderOptionsPlugin' ) ;
6
6
const ContextReplacementPlugin = require ( 'webpack/lib/ContextReplacementPlugin' ) ;
7
7
8
8
const ENV = process . env . ENV = process . env . NODE_ENV = 'test' ;
@@ -63,15 +63,15 @@ module.exports = {
63
63
]
64
64
} ,
65
65
plugins : [
66
- new webpack . DefinePlugin ( {
66
+ new DefinePlugin ( {
67
67
'ENV' : JSON . stringify ( ENV ) ,
68
68
} ) ,
69
69
new ContextReplacementPlugin (
70
70
// The (\\|\/) piece accounts for path separators in *nix and Windows
71
71
/ a n g u l a r ( \\ | \/ ) c o r e ( \\ | \/ ) ( e s m ( \\ | \/ ) s r c | s r c ) ( \\ | \/ ) l i n k e r / ,
72
72
helpers . root ( 'src' ) // location of your src
73
73
) ,
74
- new webpack . LoaderOptionsPlugin ( {
74
+ new LoaderOptionsPlugin ( {
75
75
debug : true ,
76
76
options : {
77
77
tslint : {
@@ -81,8 +81,10 @@ module.exports = {
81
81
} ,
82
82
} ,
83
83
} ) ,
84
- // new CheckerPlugin(),
85
84
] ,
85
+ performance : {
86
+ hints : false ,
87
+ } ,
86
88
node : {
87
89
global : true ,
88
90
crypto : 'empty' ,
You can’t perform that action at this time.
0 commit comments