Closed (fixed)
Project:
Zen
Version:
7.x-5.x-dev
Component:
CSS/SASS/HTML markup
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2013 at 11:17 UTC
Updated:
2 May 2013 at 04:30 UTC
Just struggled with an issue regarding multiline comments in a .scss file. I found out that multiline comments are not working properly while compiling the *.scss files via $: compass watch path/to/theme command.
A solution is proposed at the following: link. Therefor I would like to ask the maintainers to put the following "monkey patch" as standard into the subtheme config.rb file.
# Remove multiline comments - monkey patch
class Sass::Tree::Visitors::Perform < Sass::Tree::Visitors::Base
# Removes all comments completely
def visit_comment(node)
return []
end
endWhile anyone would apply this patch, don't forget to:
[CTRL]+[C] - stop compass daemon process
compass compile
compas watch path/to/theme
Thanks
Comments
Comment #1
echoz commentedWe use // single line style comments on multilines as well, so we have a choice to preserve comments or not in compiled css.
http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments
Comment #2.0
(not verified) commentedcompass comment