benmccallum / AspNetBundling

An assortment of bundling utility classes like custom transformers and fixes for the ASP.NET Web Optimization bundling framework.
MIT License
63 stars 16 forks source link

Adds the ability to not minify code and hence preserve variable names #12

Closed byte916 closed 6 years ago

byte916 commented 6 years ago

Sometimes names of variables need to keep (for example, when used angularjs objects). This has add to constructor an param to protect variable names.

benmccallum commented 6 years ago

Thanks for the pull request! I see what you're doing here. I'm going to adjust it slightly though if that's ok. Do you need this merged and released to the NuGet feed soon? Let me know!

byte916 commented 6 years ago

Right now I do not need a new version. You can merge it whenever you want

benmccallum commented 6 years ago

This is now release in v2.1.0 and I'm publishing to NuGet now so it'll be live and installable as a nuget package very soon! Thanks again.

benmccallum commented 6 years ago

Hi @byte916 , just wanted to give you a heads up that if you're upgrading to v3.0.0, you may need to check that minifyCode is still disabled as I made it the default now. Just use the right constructor (if you're not already) and you're good to go. Cheers.