-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
[scss] Sources path in extracted "*.map.css" file is not correct - hierarchy of folders is missed. #441
Comments
Okay, it seems I've just found a workaround for this - it's necessary to pass "to" attribute via options, e.g.:
Probably it makes sense to set it automatically. At least, the "postcss" docs mention, that it's usually set automatically by runners. https://github.com/postcss/postcss. |
Given that, the source files hierarchy looks like this:
content of test.js file:
And the Rollup config looks like this:
And devDependencies look like this:
When I run rollup build
rollup -c rollup.config.mjs
the source map of css looks like this:"build/styles.css.map"
Please pay attention that folders hierarchy is missed here. Expected behavior:
Also, please pay attention to the source map of js file which is also generated in this example, contains correct path for sources:
"build/test.js.map"
The text was updated successfully, but these errors were encountered: