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
LESS doesn’t create a map from closed bracket } #2413
Comments
@bassjobsen I can't reproduce any problem, could you add more detail? I've tried a few examples from the linked bug but I think I need |
Hi Luke, In short what i found: my Less file, p {
color: red;
} Then i run: t.css.map now contains: {"version":3,"sources":["t.less","t.css"],"names":[],"mappings":"AAAA;EACA,YAAA;ECCC","file":"t.css"} without the autoprefixer: {"version":3,"sources":["t.less"],"names":[],"mappings":"AAAA;EACA,UAAA","file":"t.css"} As you can see after running the autoprefixer the output don't change, but the sourcemap does and adds After all i think the right outcome of the above is possible ambiguous cause in the situation that the autoprefixer adds some rules what should be the source of these rules? So again i don't want to waste your time. I'm not sure it is an issue indeed and i'm also not sure if it will hurt someone. |
Ah yes, this is the issue i raised with a-p which they just closed. I will |
related: sindresorhus/gulp-autoprefixer#10 |
This is still a problem in 2.7.1 |
this is still a problem in 3.11.1. The source map has no mapping made for closing brackets. I zipped up the source less file, the source map that get generated and the output css file. If it helps to see the bug yu can go here https://sokra.github.io/source-map-visualization/#custom and load the files in to visualization tool and see the bug for yourself. The reason this is such a pain is when you are applying mulitple stages of transformations to a file For example Less -> CSS -> Autoprefixed CSS -> concatenated CSS file |
See: gulp-community/gulp-less#126
Related issues: gulp-community/gulp-less#126
The text was updated successfully, but these errors were encountered: