Ant
Get Support

Nibbler

This is an additional build task for web project publish to

  • Compress and combine JS and CSS
  • Optimise PNG files
  • Nibble files to remove references to combined files

It uses YUI Compressor for .Net http://yuicompressor.codeplex.com for JS and CSS
and PNGOUT.EXE http://advsys.net/ken/utils.htm for PNG compression.

You can get it from NuGet http://nuget.org/List/Packages/antix-nibbler

And its open source http://code.google.com/p/antix-software

Example Output

Compressing
Compress obj\Debug\Package\PackageTmp\Content\Styles\Default.css: to 80.9%
Compress obj\Debug\Package\PackageTmp\Content\Styles\Site.css: to 82.0%
Compress obj\Debug\Package\PackageTmp\Content\Scripts\jquery.cookie.js: to 22.9%
Compress obj\Debug\Package\PackageTmp\Content\Scripts\jquery.form.js: to 39.1%
Compress obj\Debug\Package\PackageTmp\Content\Scripts\jquery.js: to 41.3%
Compress obj\Debug\Package\PackageTmp\Content\Scripts\jquery.settings.js: to 38.5%
Compress obj\Debug\Package\PackageTmp\Content\Scripts\json2.js: to 19.3%
Compress obj\Debug\Package\PackageTmp\Content\Scripts\Site.js: to 58.6%
Compress obj\Debug\Package\PackageTmp\Content\Graphics\a.png: to 58.7%
Nibble obj\Debug\Package\PackageTmp\Views\Shared\_Layout.cshtml:

Known Issues

After updating or uninstalling Nibbler you will have to restart Visual Studio. This is because VS does not release the NibblerTask from memory, the only way to do this is a restart.

Bugs and Support

Please use the Google Code site for bugs and support, that way everyone can see what is going on with the project

I hope you find it useful.. please send me a message with any other feedback below, and if you like it rate it on NuGet - ta

Get Support (all fields are required)

please add the version, if you know it

please describe the problem including steps for me to reproduce it

also include your operating system or browser where applicable

On Twitter Follow MrAntix on Twitter

15/05/2012
WindowsAzure
Announcing the MEET Windows Azure Event! Streamed online June 7th. Register at http://t.co/bObzTAuL  #MEETAzure #WindowsAzure

10/05/2012
kevinwhinnery
Comparing Titanium and PhoneGap - A common question I get asked at developer events and conferences is how... http://t.co/Zq2eND6B

09/05/2012
brianleroux
PhoneGap goals and philosophy: http://t.co/wkq8wI2T

just now
gesmarjunior
Like me in Brasil \o/ RT @AndreCharland: Can't believe how many are using @PhoneGap down here in south america

just now
NewAndroidApps
New #android #app: ICSC Mobile http://t.co/5tjtEB5u