This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi I need to compile scss files from different locations in our project. Its an MVC project containing multiplea areas and each area has their own styles folder. There is also a global styles folder. In the config.rb the global styles folder is configured within sass_dir. All files where compiled, but the file sitting in the multiple areas could not be compiled because the reference to compass could not be resolved. /* Syntax error: File to import not found or unreadable: compass/css3/box-sizing. Load paths: D:/.../Solution D:/.../Solution/Projectname/Areas/Areaname/Styles/ on line 1 of D:...\Solution\Projectname\Areas\Areaname\Styles\Somename.scss Use --trace for backtrace. */ As I read here maybe the compass compiler isnt used for the multiple scss files within the areas? http://www.mindscapehq.com/forums/thread/1285821 (last post) Is there a way to compile all scss files with the compass compiler without placing them all in the same folder? Regards |
|
|
Thats correct, this is not something we support primarily because you would need multiple Compass applications (one per area) and we only handle one per project. Do you actually need the Sass files to live under the areas or just the output? As mentioned in the linked thread the Compass compiler is only triggered for assets underneath its managed folder (since thats what its going to be compiling) and we use the standard Sass compiler to compile files which live outside of that structure within your project.
|
|
|
Thanks for your response. I would like to keep the Sass files near the module its used for. Its not for a technical reason, but because of codemanagement and clarity. I tried to set the sassdir to "~/Areas/" an the compiler seems to find the scss files in the subdirectory. Is ther a way to set the sassdir to the root folder to catch the "Areas" folder an the global "Scripts" folder. Currently I use a workaround. - Commented out cssdir an sassdir - Checked out the compass stylesheet mixins from github and copied them to the Solution folder. - Implicitly use the sass compiler through WebWorkbench. Seems to work. Any reasons for not doing it like this? Regards Philip |
|
|
The reason we dont do this is the Compass compiler provides extra Ruby functions which are not available by just including the associated Sass includes. If this is working happily then its certainly a viable workaround but if you do start seeing errors crop up relating to missing functions that will be the cause :)
|
|