Caching support?
getvega opened this issue · 5 comments
Caching of imports landed in stylus#0.440
and does not seem to be working in grunt-contrib-stylus
. Any way to have caching enabled here?
Looks like the stylus
object is re-created at each compilation.
+1 ... I run stylus task on file change, detected by grunt-contrib-watch. It would be handy to allow cache support and speed up build process.
Reading LearnBoost/stylus#1428 shows that if you use grunt-contrib-stylus
with grunt-contrib-watch
, you simply need to set the spawn
option on your stylus watch target to false, to re-use the stylus
object.
Thank you! Huge drop on our side :-)
This should be mentioned in readme at least, don't you think?
PRs welcome if you think so! Please make your changes in the docs/
dir.