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

SourceMap: Independent of settings. #833

Merged
merged 2 commits into from
Apr 2, 2014

Conversation

am11
Copy link
Contributor

@am11 am11 commented Apr 2, 2014

SourceMap independence from settings

The aim is to make source-map generation
independent of WE's "generate .map" settings
for LESS and SCSS..

It will compile just once on document open (which
it already does); if the map generation is set,
read from the generated map file. Otherwise,
in compiler parameter we set path to temp file,
read all text and delete the file.


Go To Definition:

In scenarios like selector1 > selector2 + selector3,
the CSS parser attach + and > signs to the prev
selector, while CSS source map count it with the
current node (SimpleSelector; part of selector).

This PR also fixes those scenarios for LESS.

am11 added 2 commits April 2, 2014 14:34
The aim is to make source-map generation
independent of WE's "generate .map" settings
for LESS and SCSS..

It will compile just once on document open (which
it already does); if the map generation is set,
read from the generated map file. Otherwise,
in compiler parameter we set path to temp file,
read all text and delete the file.
In scenarios like sel1 > sel2 + sel3,
the CSS parser attach `+` and `>` signs to the
previous selector, while CSS source map count it
with the current node (SimpleSelector; that is
part of selector).
madskristensen added a commit that referenced this pull request Apr 2, 2014
SourceMap: Independent of settings.
@madskristensen madskristensen merged commit a63c363 into madskristensen:master Apr 2, 2014
@am11 am11 deleted the sourcemap-improvement branch April 16, 2014 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants