问题
I'm wondering if it's possible for Compass to output files to different directories? I have a fairly large project and while most CSS files go in the /css folder, others need to go in the /admin/css folder. I'm symlinking them for now, but it'd be great if I could define an array of files (in config.rb?) that could be output elsewhere.
回答1:
In config.rb edit the css_dir = "/"
to your wanted directory! I don't think it can handle multiple output folders.
回答2:
One way around it might be to set up symlinks from where they're supposed to go to the actual output CSS files.
I might be doing the same myself for a Magento package with different themes.
来源:https://stackoverflow.com/questions/5454444/possible-to-change-the-sass-compass-output-folder-for-different-files