File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 27
27
"hint-tests" : " jshint --verbose test" ,
28
28
"start" : " npm-run-all --parallel dev-server dev-test" ,
29
29
"test" : " npm run hint-tests && npm run dev-test" ,
30
- "build" : " npm run prod-builds && npm run prod-test && npm run hint-test "
30
+ "build" : " npm run prod-build && npm run prod-test && npm run hint-tests "
31
31
},
32
32
"devDependencies" : {
33
33
"babel-core" : " ^6.24.1" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const getBanner = () =>
13
13
'License: ' + packageJSON . license ;
14
14
15
15
const ENV = ( process . env . npm_lifecycle_event . indexOf ( 'dev' ) === 0 ) ? 'development' : 'production' ;
16
+ const isTest = ( process . env . npm_lifecycle_event . indexOf ( 'dev-test' ) !== - 1 ) ? true : false ;
16
17
console . log ( '********** webpack runs in ' + ENV + ' environment **********\n' ) ;
17
18
18
19
let configEnv ;
@@ -39,7 +40,7 @@ if (ENV === 'development') {
39
40
40
41
plugins : [ ] ,
41
42
42
- devServer : {
43
+ devServer : ! isTest ? {
43
44
historyApiFallback : {
44
45
rewrites : [
45
46
{ from : '/dist/ui-scroll.js' , to : ( context ) => '/ui-scroll.js' } ,
@@ -56,7 +57,7 @@ if (ENV === 'development') {
56
57
port : 5005 ,
57
58
stats : 'errors-only' ,
58
59
publicPath : '/'
59
- } ,
60
+ } : { } ,
60
61
61
62
watch : true
62
63
}
You can’t perform that action at this time.
0 commit comments