Bundling and minifying modular JavaScript (RequireJS / AMD) with ASP.NET MVC

后端 未结 4 1339
轮回少年
轮回少年 2020-12-24 01:35

Does anyone have any experience with or know any good solutions for bundling and minifying modular JavaScript like RequireJS / AMD in an ASP.NET MVC project?

Is the

4条回答
  •  无人及你
    2020-12-24 02:27

    I'm not sure if this is an acceptable solution or not, but Visual Studio 2012 has a NuGet package (Microsoft.Web.Optimization) which supports native minification and bundling. I'm not sure if it's available for 2010

    It's one line of code in application_start

    Microsoft.Web.Optimization.BundleTable.Bundles.EnableDefaultBundles();
    

    http://msdn.microsoft.com/en-us/vs11trainingcourse_aspnetandvisualstudio_topic5

提交回复
热议问题