This is a plugin to utilize the Microsoft Ajax Minifier with the PVC Build Engine.
###Parameter Options
The plugin has the ability to take in the following parameters:
-
generateSourceMaps (default: false) - determines whether source maps will be generated. Mircosoft Ajax Minifier supports JS source maps only.
-
commandLineSwitches (default: "") - command line switches for the Microsoft Ajax Minifier. More details on what can be passed in can be found here.
###Usage Examples
Basic:
pvc.Source("js/*", "css/*", "test.js", "test.css")
.Pipe(new PvcAjaxmin())
.Save(@"deploy");
With Parameters:
pvc.Source("css/*")
.Pipe(new PvcAjaxmin("-colors:hex"))
.Save(@"deploy");
pvc.Source("js/*")
.Pipe(new PvcAjaxmin(generateSourceMaps:true))
.Save(@"deploy");
pvc.Source("css/*", "js/*")
.Pipe(new PvcAjaxmin("-colors:hex", true))
.Save(@"deploy");