-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If source map is generated, there should be no source line comments #551
Comments
this "feature" is enabled by setting "source_comments" to true by the implementors. The api has sligthly changed, so I guess your implementation hasn't kept up to this change. But it is defenetly configurable by implemtors! |
@mzgol what adapter are you using? |
@hcatlin grunt-sass Michał Gołębiowski |
The line comments are still included for me when I'm using node-sass via broccoli-sass, and the options that are being passed to node-sass are:
|
Same problem here line comments are generated when sourceComments is set to Map. grunt-sass version 0.16.0 |
This looks like a documentation bug in You probably can just not set //CC @am11 |
@mgreter is right; the documentation needs to be updated. You need to set Tested with latest node-sass npm, v1.0.3. |
BTW I think we need to change this behavior: https://github.com/sass/node-sass/blob/0f62c1817cba77c45ad3f27ac20ee604c1e7883b/sass.js#L56 and make it @andrew thoughts? |
@am11 yeah I think your right |
This way by default (if |
With libsass 3.0.0 even if source maps are generated, the resulting CSS file still contains source line comments like:
/* line 137, /Users/mgol/Documents/projects/bn/cbn/repo/polona-gui/app/core-styles/lists */
This is unnecessary; Ruby Sass doesn't generate these comments. An example:
The following SCSS:
is generated by Sass 3.4.5 to the following CSS (when output style is set to nested):
Meanwhile, libsass 3.0 converts it to:
Note the comment line
Another issue with this example: #552
The text was updated successfully, but these errors were encountered: