The config.rb file in Sass contains support for the FireSass extension to Firefox. Unfortunately, the FireSass Add-on has been abandoned.
https://github.com/nex3/firesass/issues/24#issuecomment-44688011
https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug
FireCompass seems to be the current replacement: https://addons.mozilla.org/en-US/firefox/addon/firecompass-for-firebug/
The configuration to support FireCompass is slightly different. I'm rewriting my config.rb file, and thought, hey, it'd be good for this to go into Zen.
Here's some documentation about the new add-on: https://github.com/is-already-taken/firecompass
In my copy of the config.rb file, I changed line 14-16 to:
# In development, we can turn on the FireCompass-compatible debug_info. firecompass = false #firecompass = true
And lines 54-56 to:
# Pass options to sass. For development, we turn on the FireCompass-compatible # line_comments if the firecompass config variable above is true. sass_options = (environment == :development && firecompass == true) ? {:line_comments => true} : {}
All is happy again! (Oh, of course after installing the FireCompass Add-on for Firefox.)
Comment | File | Size | Author |
---|---|---|---|
#5 | 2295227-5--Add-and-document-sourcemap-and-firecompass.patch | 4.5 KB | mike stewart |
#4 | firecompass_support-2295227-4.patch | 1.95 KB | BWPanda |
Comments
Comment #1
jensimmons CreditAttribution: jensimmons commentedComment #2
tchi CreditAttribution: tchi commentedNot working for me with these settings...
Comment #3
tstermitzYaaay! I thought I was going crazy when my fire sass stopped working. This works great… At least until maybe source maps are working.
Comment #4
BWPanda CreditAttribution: BWPanda commentedAwesome, thanks Jen! Here's a patch.
Comment #5
mike stewart CreditAttribution: mike stewart commentedSeems this is a bit old school. Interweb moves fast :)
The new practice would be to remove your browser plugins and use
--sourcemap
in both sass 3.3+ and compass 1.0.1+ -- all major browsers currently have builtin developer tools support for sourcemap files (*.map)!I've attached a patch which makes this change ... it also adds firecompass and preserves firesass ... since they're all really similar and technically can play together. I've also added a bit more explanation in both config.rb comments and sass/README.txt
Final Note: Eventually I feel
sourcemap=true
should be the default (not false), since this is a development option and the config variableenvironment= :development
is set by default (which means not production). The reason I didn't do this now is due to the version requirements of both compass & sass -- still a bit bleeding edge.Comment #6
goldii CreditAttribution: goldii commentedworks great! thanks!
Comment #7
mike stewart CreditAttribution: mike stewart commentedI'd really like to see #5 formally reviewed ( +goldii ??) and/or committed. I think it'll help alleviate confusion.
I'm afraid due to [https://www.drupal.org/node/1696924#comment-9115885] -- which simplifies setup and correctly establishes dependencies -- but it also locks users to older methods for debugging and thereby must rely on a plugin.
Comment #8
rfsbsbI can confirm the patch is working. I've just tested on a zen (7.x-5.5) based theme, and everything worked.
Comment #9
mike stewart CreditAttribution: mike stewart commentedComment #12
JohnAlbinFixed!