Possible to change the SASS/Compass output folder for different files?

安稳与你 提交于 2019-12-07 04:43:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!