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
end

While anyone would apply this patch, don't forget to:

[CTRL]+[C] - stop compass daemon process
compass compile
compas watch path/to/theme

Thanks

Comments

echoz’s picture

Priority: Major » Normal
Status: Active » Fixed

We 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

compass comment