Bundling and minification without ASP.NET MVC

前端 未结 6 1196
遥遥无期
遥遥无期 2020-12-13 14:17

Is it possible to use bundling and minification from Microsoft.AspNet.Web.Optimization without having an MVC project?

I\'m creating an AngularJS site communicating w

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 15:02

    You can use YUI or Google Clouser Mapper

    This is the example how to user YUI with Visual Studio

    http://peronnemyr.wordpress.com/2012/09/26/using-yui-compressor-for-net-integrated-to-builds-in-visual-studio-2010/

    This link has Visual Studio Extensions http://visualstudiogallery.msdn.microsoft.com/5469b7e2-90d7-4f54-b299-ae47e26323e6

    You can User JSMIN http://www.crockford.com/javascript/jsmin.html

    You can run JsMin as Post Build Event as below jsmin <"$(ProjectDir)\debug.js" >"$(ProjectDir)\min.js"

    This is the link how run JSMIN http://jasonfaulkner.com/RunJSMinInVisualStudio.aspx

    If this answered your question, Please check right on left side.

提交回复
热议问题