gulp - Ionic serve ignoring gulpStartupTasks -
i have ionic.project file:
{ "name": "foobar", "app_id": "com.foo.bar", "gulpstartuptasks": [ "styles", "source", "watch" ], "watchpatterns": [ "www/**/*", "!www/lib/**/*" ], "sourcemodules": { "ionic": "git://github.com/driftyco/ionic.git", "ng-cordova": "git://github.com/driftyco/ng-cordova.git" } } but gulp tasks not being executed, added console.logs debug nothing happened.
any ideas?
update:
i've detected gulpstartuptasks being executed asynchronously ionic initialization, when ionic tries find www folder , don't find (because startup tasks haven't run yet) fails , kill process
but if create empty www folder trick ionic works opens browser error saying index.html haven't been found
however, seconds after see startup tasks being executed in shell
and if refresh page works
how can make these startup tasks run before ionic tries find www folder?
according latest ionic-cli documentation, if want gulp tasks run before app served, add serve:before task gulpfile.js file in project root. in case be:
gulp.task("serve:before", [ "styles", "source", "watch" ]);
Comments
Post a Comment