File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ module.exports = function (config) {
11
11
'./config/spec-bundle.js' : [ 'webpack' , 'sourcemap' ] ,
12
12
} ,
13
13
webpack : testWebpackConfig ,
14
- webpackServer : {
15
- noInfo : true ,
16
- } ,
14
+ webpackMiddleware : { stats : 'errors-only' } ,
17
15
reporters : [ 'mocha' ] ,
18
16
port : 9876 ,
19
17
colors : true ,
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ module.exports = {
44
44
} ) ,
45
45
new ForkCheckerPlugin ( ) ,
46
46
new webpack . ContextReplacementPlugin (
47
+ // The (\\|\/) piece accounts for path separators in *nix and Windows
47
48
/ 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 / ,
48
- __dirname
49
+ helpers . root ( 'src' ) // location of your src
49
50
) ,
50
51
new webpack . optimize . CommonsChunkPlugin ( {
51
52
name : [ 'polyfills' , 'vendor' ] . reverse ( )
Original file line number Diff line number Diff line change 1
1
const helpers = require ( './helpers' ) ;
2
2
const webpack = require ( 'webpack' ) ;
3
3
4
+ const ContextReplacementPlugin = require ( 'webpack/lib/ContextReplacementPlugin' ) ;
5
+
4
6
const ENV = process . env . ENV = process . env . NODE_ENV = 'test' ;
5
7
6
8
module . exports = {
@@ -40,12 +42,18 @@ module.exports = {
40
42
new webpack . DefinePlugin ( {
41
43
'ENV' : JSON . stringify ( ENV ) ,
42
44
} ) ,
45
+ new ContextReplacementPlugin (
46
+ // The (\\|\/) piece accounts for path separators in *nix and Windows
47
+ / 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 / ,
48
+ helpers . root ( 'src' ) // location of your src
49
+ ) ,
43
50
new webpack . LoaderOptionsPlugin ( {
51
+ debug : true ,
44
52
options : {
45
53
tslint : {
46
54
emitErrors : false ,
47
55
failOnHint : false ,
48
- resourcePath : 'src'
56
+ resourcePath : 'src' ,
49
57
} ,
50
58
} ,
51
59
} ) ,
You can’t perform that action at this time.
0 commit comments