When I start the serve command my gulp's hooks don't work. For example:
gulp.task(‘serve:before’, function(cb)
…
But when I remove the scripts section from package.json the serve command works great again.
Steps to reproduce:
-
Make some gulp task like this: gulp.task(‘serve:before’, function() {console.log(‘here’);});
-
Add an empty script section inside package.json
-
Call the ionic serve - there is no any message from the hook
-
Remove the script section from package.json and call again the serve command. Now all works ok.
Which @ionic/app-scripts version are you using?
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v6.8.1
Xcode version: Xcode 8.0 Build version 8A218a
PS: This trouble is absent in ionic 2.0.0!