Skip to content
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

LESSC '--source-map' flag breaking the CSS output #2458

Closed
saada opened this issue Feb 18, 2015 · 5 comments
Closed

LESSC '--source-map' flag breaking the CSS output #2458

saada opened this issue Feb 18, 2015 · 5 comments

Comments

@saada
Copy link

saada commented Feb 18, 2015

Hey guys,

I'm having issues with the LESS compilation. The default configuration runs:
lessc {from} {to} --no-color --source-map

body {
  background-color: red;
}
������������������������������������

By changing the command to
lessc {from} {to} --no-color
Notice the missing --source-map flag!

we get

body {
  background-color: red;
}
@saada saada changed the title LESSC doesn't work with source-map flag LESSC '--source-map' flag breaking the CSS output Feb 18, 2015
@seven-phases-max
Copy link
Member

Could you provide more details about your environment (lessc and node versions, OS etc.)? I tested with [lessc 2.4.0, node 0.10.36, Windows] and it works as expected:

body {
  background-color: red;
}
/*# sourceMappingURL=out.css.map */

(Also, considering the referenced issue above, are you sure the sourcemap string is not screwed by something down the tool-chain?)

@matthew-dean
Copy link
Member

Or maybe a text encoding issue?

@saada
Copy link
Author

saada commented Feb 19, 2015

@seven-phases-max, Yes I'm sure it's not screwed up because I can reproduce via CLI.

I'm using Ubuntu 14.04, nodejs v0.10.25, lessc 2.3.1.

@matthew-dean
Copy link
Member

I did notice recently that Less's source map dependency is an older version. Maybe something like this was addressed in the sourcemap lib?

@lukeapage
Copy link
Member

closing due to lack of follow up information, will re-open if you give us a test-case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants