System.Web.Optimization making function argument names stay the same for certain functions

后端 未结 3 763
时光说笑
时光说笑 2021-01-06 03:52

With ASP.NET Bundling with a ScriptBundle

function StartController($scope, $location, $rootScope) {}

is transformed to

func         


        
3条回答
  •  一整个雨季
    2021-01-06 04:48

    This works with System.Web.Optimizations nuget package 1.1

    https://gist.github.com/zaus/7436601

    (I've included a couple other concepts from along the way)

    Essentially, you need to write a new BundleTransform/Minifier that exposes the CodeSettings so you can change the NoAutoRenameCollection.

提交回复
热议问题