Skip to content
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

Missing sourceMap config #36

Open
TristanPct opened this issue Nov 7, 2019 · 2 comments
Open

Missing sourceMap config #36

TristanPct opened this issue Nov 7, 2019 · 2 comments

Comments

@TristanPct
Copy link

Hi,

I'm currently testing your package, especially the CleanCssMinifier but I have noticed that the sourceMap option available in the clean-css library is not configurable trough web.config settings.

Apparently, other minifiers (CSS or JS) with source map option also missing this parameter.

@Taritsyn
Copy link
Owner

Hello, Tristan!

I apologize for the fact that I could not answer for a long time.

Bundle Transformer does not support source maps. This is largely due to the pipeline implementation (information is lost during resolving of paths and combining of code) and the fact that not all modules support generation of source maps.

@TristanPct
Copy link
Author

Is there any way for the pipeline to keep information during transformation?

It's not blocking for minifier because I can disable transformation to see source code, but I tried to use this plugin with the Sass transformer and it became hard to debug.
Partial files and variables are not available in the browser debugger and line number for rules are false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants