File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ function validateInput(options) {
1414 if ( typeof options . onBuildEnd === 'string' ) {
1515 options . onBuildEnd = options . onBuildEnd . split ( '&&' ) ;
1616 }
17- if ( typeof options . onExit === 'string' ) {
18- options . onExit = options . onExit . split ( '&&' ) ;
17+ if ( typeof options . onBuildExit === 'string' ) {
18+ options . onBuildExit = options . onBuildExit . split ( '&&' ) ;
1919 }
2020 return options ;
2121}
@@ -24,7 +24,7 @@ function WebpackShellPlugin(options) {
2424 var defaultOptions = {
2525 onBuildStart : [ ] ,
2626 onBuildEnd : [ ] ,
27- onExit : [ ] ,
27+ onBuildExit : [ ] ,
2828 dev : true ,
2929 verbose : false
3030 } ;
@@ -37,8 +37,8 @@ function WebpackShellPlugin(options) {
3737 options . onBuildEnd = defaultOptions . onBuildEnd ;
3838 }
3939
40- if ( ! options . onExit ) {
41- options . onExit = defaultOptions . onExit ;
40+ if ( ! options . onBuildExit ) {
41+ options . onBuildExit = defaultOptions . onBuildExit ;
4242 }
4343
4444 if ( ! options . dev ) {
@@ -87,9 +87,9 @@ WebpackShellPlugin.prototype.apply = function (compiler) {
8787 } ) ;
8888
8989 compiler . plugin ( "done" , function ( ) {
90- if ( options . onExit . length ) {
90+ if ( options . onBuildExit . length ) {
9191 console . log ( "Executing addiotn scripts befor exit" ) ;
92- options . onExit . forEach ( function ( script ) {
92+ options . onBuildExit . forEach ( function ( script ) {
9393 exec ( script , puts ) ;
9494 } ) ;
9595 }
You can’t perform that action at this time.
0 commit comments