tmaximini / generator-ionic-gulp

A Yeoman generator for fast hybrid app development that stays out of your way
134 stars 36 forks source link

use ionic.scss instead of ionic.min.css #4

Closed trueter closed 9 years ago

trueter commented 9 years ago

importing the minified css makes it impossible to use a custom .scss theme. i tried streaming ionic.scss instead of ionic.min.css but get a ruby error Error: Errno::ENOENT: No such file or directory @ rb_sysopen - /var/folders/l0/77cv0tbj11x6nd6g9_p0xgz80000gn/T/gulp-ruby-sass/ionic.css

tmaximini commented 9 years ago

hey trueter, i will look into it. best thing would probably compile the ionic css together with our own during build.

tmaximini commented 9 years ago

@trueter please update to 1.2.0 and see if it works now

trueter commented 9 years ago

Works like a charm. I recommend using gulp-cache and gulp-remember around the compile step to get the re-compile time down from >2000 ms to ~100ms

.pipe(cache('ionic-sass'))
.pipe(sass(options))
.pipe(remember('ionic-sass'))

Thanks again!

tmaximini commented 9 years ago

thanks for the info, why not send a PR ;-)

tmaximini commented 9 years ago

added cached and remember via 113d6dc7967b22bb3cf5062cfce527ba774a0160

trueter commented 9 years ago

next time :)