Anthony Johnston
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

a minute ago
tjanczuk
RT @jeffwilcox: Blogged: Windows Azure Web Sites and custom SSL certificates - finally setup and loving it! http://t.co/F9IVJq3HhQ

3 minutes ago
pbouwer
RT @jeffwilcox: Blogged: Windows Azure Web Sites and custom SSL certificates - finally setup and loving it! http://t.co/F9IVJq3HhQ

6 minutes ago
pbouwer
RT @rseroter: Very nice post explaining differences in BizTalk 2013 mapper and #WindowsAzure BizTalk Services mapper http://t.co/2aFpT2c07X

11 minutes ago
spbreed
RT @EricLigman: Huge collection of #FREE eBooks from #Microsoft: http://t.co/57dCbiwpyn #Office #Office365 #MSPartner #SharePoint $MSFT

12 minutes ago
Tech_Collective
@Spodeo: app dev is 99% configuration. Use #PhoneGap guide on their website #RIsoftware