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 2727 "hint-tests" : " jshint --verbose test" ,
2828 "start" : " npm-run-all --parallel dev-server dev-test" ,
2929 "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 "
3131 },
3232 "devDependencies" : {
3333 "babel-core" : " ^6.24.1" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const getBanner = () =>
1313 'License: ' + packageJSON . license ;
1414
1515const 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 ;
1617console . log ( '********** webpack runs in ' + ENV + ' environment **********\n' ) ;
1718
1819let configEnv ;
@@ -39,7 +40,7 @@ if (ENV === 'development') {
3940
4041 plugins : [ ] ,
4142
42- devServer : {
43+ devServer : ! isTest ? {
4344 historyApiFallback : {
4445 rewrites : [
4546 { from : '/dist/ui-scroll.js' , to : ( context ) => '/ui-scroll.js' } ,
@@ -56,7 +57,7 @@ if (ENV === 'development') {
5657 port : 5005 ,
5758 stats : 'errors-only' ,
5859 publicPath : '/'
59- } ,
60+ } : { } ,
6061
6162 watch : true
6263 }
You can’t perform that action at this time.
0 commit comments