Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent directory not working in sass_options cache path #1045

Open
mikaeljorhult opened this issue Oct 8, 2012 · 3 comments
Open

Parent directory not working in sass_options cache path #1045

mikaeljorhult opened this issue Oct 8, 2012 · 3 comments

Comments

@mikaeljorhult
Copy link

@mikaeljorhult mikaeljorhult commented Oct 8, 2012

Compass fails to use :cache_location when using path above project directory, for example:
sass_options = {:cache_location => "../.sass-cache"}

I expect that this should result in the .sass-cache folder being placed one level above the project but is generated in the same folder as config.rb. When failing Compass also break css_dir and CSS files are generated in the same folder as the SCSS/Sass files.

Using the sass command do, on the other hand, result in the expected behaviour.

You can work around the problem in Compass using cache_dir = "../.sass-cache" but the same problems are then present when using sass command instead.

@Pixelime
Copy link

@Pixelime Pixelime commented Jan 16, 2014

Any updates on this?
I've tried the cache_dir = "" but it doesn't work... :-(
PS: I'm using Campass through Grunt JS

@mikaeljorhult
Copy link
Author

@mikaeljorhult mikaeljorhult commented Jan 16, 2014

The cache_dir is working with Compass so it should work as long as Grunt is using Compass to process the code.

@soundasleep
Copy link

@soundasleep soundasleep commented Apr 1, 2014

Also make sure you are running a recent version of grunt-contrib-compass, cache_dir doesn't work on 0.5.0 but works on 0.7.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants