Post New Article [art] |
When installing the latest version of the Microsoft.AspNet.Web.Optimization package (before the Microsoft.Web.Optimization package) I noticed a dependency on an assembly called WebGrease. So I started to look around what it is and found the following 2 blog posts: What is WebGrease?WebGrease is a suite of tools focused on assisting web developers with optimizing the "static" asset files (JavaScript, CSS) of a web application. The features the initial version includes are:
The Web Optimization library uses some of the features WebGrease offers(currently only the Minification features for CSS and JavaScript). In order to use all of the features in WebGrease, there is a command line tool included with the nuget package(WG.exe). wg.exe <operation switch> -in:<input file/folder> -out:<output file/folder> The valid operation switches of WG.exe are:
|