Taritsyn / BundleTransformer

Bundle Transformer - a modular extension for System.Web.Optimization (also known as the Microsoft ASP.NET Web Optimization Framework).
Apache License 2.0
130 stars 19 forks source link

Missing sourceMap config #36

Open TristanPct opened 4 years ago

TristanPct commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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.