YUI Compressor and .NET Apps

前端 未结 4 1328
失恋的感觉
失恋的感觉 2021-02-02 01:09

I want to use YUI Compressor (the original) and use it as part of typical MS build processes (Visual Studio 2008, MSBuild).

Does anyone have any guidance or thoughts on

4条回答
  •  青春惊慌失措
    2021-02-02 02:02

    Because the YUI Compressor is simply a command line tool, you could call it as part of a Pre or Post Build action. (If you delve deep enough into MSBuild, you can let it run only when the files have changed, speeding up your regular builds; VS is pretty lenient when it comes to customized MSBuild actions in your project file.)

    You could use Gabe's answer as a guideline on how to develop using such a setup; you could also during the Render of, say, a master page translate all non-minified url's in your with minified url's (a little tricky though, as

提交回复
热议问题