I’ve recently been trying out Grunt instead of the tried and trusted CodeKit as there’s a few things I really like about it, one of which is how customisable it is.
I set Grunt us to watch my Sass/Scss files and compile whenever I saved them.
![Grunt - Sass basic setup](http://www.liamjaydesigns.com/wp-content/uploads/2014/05/grunt-sass-basic-setup-440x153.png)
Sadly, one issue I was struggling with was a problem when I was getting grunt to watch a project and the Sass cache would create an error with the compilation. I’ve no idea why this is, so I can only assume this is to do with the name of the file always changing each time the project is saved. either way, it was a real pain in the ass
![Sass cache Grunt error](http://www.liamjaydesigns.com/wp-content/uploads/2014/05/sass-cache-grunt-error-440x144.png)
After searching for a solution online and finding nothing, I finally noticed that it was possible to add a line to the setup file that makes it not cache the Sass files, so I’m adding this post in case anyone else is suffering with the same issue that I was having. Alternatively, if there’s a better solution to this then please feel free to let me know about it and I can update this post.
![Grunt, Sass advanced setup](http://www.liamjaydesigns.com/wp-content/uploads/2014/05/grunt-sass-advanced-setup-440x171.png)
Apparently this can be solved by updating your version of Ruby to 2.X. See the ticket for this issue: https://github.com/gruntjs/grunt-contrib-sass/issues/63