-
Notifications
You must be signed in to change notification settings - Fork 115
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
import-only files not in sourcemap #400
Comments
PR welcome to fix this. |
Puh. I wouldn't even know where to start. I have no clue about the interaction between postcss and postcss-import. |
That is the only way to "fix" this.
If a file contains only We could automatically add a comment with the But any half decent minifier will scrub comments, re-introducing the issue. I am also unsure what the use case is. If so, which problem? |
@import url("a.css");
.box {
background-color: green;
} becomes : /* tests/001-core-features/001/default/a.css */
.box {
background-color: green;
}
/* tests/001-core-features/001/default/style.css */ |
If someone wants this badly enough they're willing to submit a PR, we can consider it. But I don't see the point of adding it just for the sake of it. So far, one request in ~4 years; doesn't seem to be a common need. |
Yeah, I also fail to see the issue. I don't think the fact that it's missing from a sourcemap is breaking anything or can cause any inconvenience. |
I have file that has only @import rules, but nothing else.
This file can not be found in the sourcemap.
If I add a dummy comment, the file is in the sourcemap.
Maybe this is related to: #81?
I created a minimally working example:
https://github.com/htho/mwe-postcss-import-sourcemap-import-only
The text was updated successfully, but these errors were encountered: