Using the Microsoft Ajax Minifier with Web Setup project & Source Control

后端 未结 2 969
遥遥无期
遥遥无期 2021-01-15 11:59

I\'ve just started investigating the Microsoft Ajax Minifer 4.0 for use with a Visual Studio 2008 Web Application I work on. It\'s proven easy enough to hook it into the .cs

2条回答
  •  滥情空心
    2021-01-15 12:29

    The solution I eventually opted for was to include the minifier DLL in my project and create a handler (.ashx) that I've replaced all references to .js files with, so:

    
    

    Is replaced with

    
    

    I have a configuration setting in my web.config file that allows me to determine whether script files are minifed or not.

提交回复
热议问题