Since ionic-cli v1.1.9 we’ve introduced the ability to also watch and reload sass files using the ionic serve
command.
To watch Sass files, you’ll first have to run ionic setup sass
, which installs gulp and gulp-sass, along with changing which css files are linked in the head of the index.html file. (This means you’ll no longer be required to setup sass using ruby, but instead you’ll be using the faster C/C++ port of the Sass engine, libsass).
For more info please check out:
If you are already using Sass, or would like to start using it, please give this new command a shot and let us know how it goes.
To get the latest version of the ionic-cli please run npm update -g ionic
. And while we’re at it, you can also now run ionic lib update
to automatically update Ionic’s library files (including sass files) within www/lib/ionic
.
Thanks!