-
Notifications
You must be signed in to change notification settings - Fork 73
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
Incorrect source map when "to" option passed #64
Comments
@htanjo Which plugins need this option? |
In my project, postcss-copy-assets requires it. |
@htanjo sorry for the delay, I'm extremely busy this week, will be able to check it over the Weekend. |
@w0rm That's ok! Thanks. |
@htanjo I sent you a temporary fix that should work. Sourcemaps are really complicated in gulp. The source map from the previous operation has to be combined with the sourcemap from the next operation. This only works when This is what was happening when the
Because The additional complication comes from the |
It seems that I can only properly fix this issue after this is implemented in postcss: postcss/postcss#240 |
@w0rm I see...! I understood the situation. |
I get the same issue regardless of the |
@alvint hi, if it happens regardless of the Sometimes gulp-postcss is not even an issue. A previous gulp plugin may generate a wrong source map that cannot be merged, so I really need to see the code to figure out what went wrong! |
Some issue, I try to understand in detail what the problem is |
Any updates on that? |
@timkraut nope and postcss/postcss#240 wasn't implemented. |
Closing as wontfix because postcss/postcss#240 is closed. |
I'm using gulp-sass, gulp-postcss and gulp-sourcemaps in my project.
When I set
to
option in thepostcss()
, the source map content is incorrect.Without
to
option, I could get proper source map, but some postcss plugins need this option.Am I overlooking something, or is this bug?
I created simple gulp tasks to reproduce this issue. I hope this helps.
https://github.com/htanjo/postcss-sourcemaps-test
The text was updated successfully, but these errors were encountered: