Skip to content

Commit b649a2b

Browse files
committed
update webpack config
1 parent fc7d0d6 commit b649a2b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

config/webpack.common.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ module.exports = {
5858
}),
5959
new ExtractTextPlugin('[name].[chunkhash].css'),
6060
],
61+
performance: {
62+
hints: false,
63+
},
6164
node: {
6265
global: true,
6366
crypto: 'empty',

config/webpack.test.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const path = require('path');
22
const helpers = require('./helpers');
3-
const webpack = require('webpack');
43

5-
// const {CheckerPlugin} = require('awesome-typescript-loader');
4+
const DefinePlugin = require('webpack/lib/DefinePlugin');
5+
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
66
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
77

88
const ENV = process.env.ENV = process.env.NODE_ENV = 'test';
@@ -63,15 +63,15 @@ module.exports = {
6363
]
6464
},
6565
plugins: [
66-
new webpack.DefinePlugin({
66+
new DefinePlugin({
6767
'ENV': JSON.stringify(ENV),
6868
}),
6969
new ContextReplacementPlugin(
7070
// The (\\|\/) piece accounts for path separators in *nix and Windows
7171
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
7272
helpers.root('src') // location of your src
7373
),
74-
new webpack.LoaderOptionsPlugin({
74+
new LoaderOptionsPlugin({
7575
debug: true,
7676
options: {
7777
tslint: {
@@ -81,8 +81,10 @@ module.exports = {
8181
},
8282
},
8383
}),
84-
// new CheckerPlugin(),
8584
],
85+
performance: {
86+
hints: false,
87+
},
8688
node: {
8789
global: true,
8890
crypto: 'empty',

0 commit comments

Comments
 (0)