by running Ionic serve or ionic run android with livereload option. gulp sass task is ran and css is getting compliled. but when I run ionic run android with out livereload gulp sass task is not running and css is not updated . how can I update run gulp tasks on ionic run with out livereload option.
Have a look at “gulpStartupTasks” property in ionic.project.
I have following tasks in ionic.project.
while running ‘ionic serve’ and ‘ionic run android with livereload’ sass task is excecuted but when i run ionic run android with live reload option sass task is not running
thanks gmarziou it worked for me
Can you give me an example of this? I have also the same problem in that once sass is properly setup as per the ionic docs, it only compiles the sass when doing “ionic serve” or runing with “live reload”
It should compile sass when doing “ionic run android” . how did you manage to fix this actually? i’m new with hooks…
I created a cordova after prepare hook. In that I called gulp sass task.
this is my code in after prepare hook.
var gulp = require(‘gulp’);
var path = require(‘path’);
var rootdir = process.argv;
var gulpfile = path.join(rootdir, ‘gulpfile.js’);