-
Notifications
You must be signed in to change notification settings - Fork 32
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
broken source map for inline sourcemap with sourcesContent set #27
Comments
Can you check again, but set |
when i try |
This is a PostCSS issue. I try to find out source of problem. But problem is not critical, because source map still correct (it shows to |
Source map vizualizer shows that |
OK. I found a problem. LESS doesn’t create a map from closed bracket Right now I have no solutions. Can you invastigae, does Sass misses |
Well okay, if i understand the issue will. This also is the reason that autoprefixer adds the destination path to the I mean after running: {"version":3,"sources":["less/t.less","t.css"], autoprefixer seems to add the If this is the same issue i can compare: .pipe(sourcemaps.init())
.pipe(sass())
.pipe(autoprefixer())
.pipe(sourcemaps.write('./')) outputs:
with: .pipe(sourcemaps.init())
.pipe(less())
.pipe(autoprefixer())
.pipe(sourcemaps.write('./')) outputs:
So it seems that Less does not map that last |
Yeap, problem is in Less, because it doesn’t add mappings for |
I tried adding .pipe(sourcemaps.write())
.pipe(sourcemaps.init({loadMaps:true})) There was no change. Tried removing the
They are.
When I click the source link in Chrome DevTools it does take me to the correct line (with autoprefixer disabled), although it takes me to the parent selector in the case of nested selectors in LESS. I guess I'll have to come up with small example. |
i have t.less:
Then i run
lessc less/t.less t.css --source-map --source-map-map-inline --source-map-less-inline
Now my
t.css
contains the following content:the base encode string correspondence with:
Then i run:
The above script outputs:
The base64 encoded part now seems to contain two sourcemaps:
Related issues:
The text was updated successfully, but these errors were encountered: