Introducing Nancy.Pile

Nancy.Pile is a super simple asset bundler for NancyFx.


  • Concatenates and minifies style sheets and JavaScript files.
  • Won’t minify files with “.min.” in the file name.
  • Nuget package or include a single file in your current package.
  • Detects when files change.
  • Wild card file matching with duplicate detection (useful when ordering matters)
  • Uncompressed bundles insert comment with file name for each file for easier debugging.


PM> Install-Package Nancy.Pile

Example Usage

public class Bootstrapper : DefaultNancyBootstrapper
    protected override void ConfigureConventions(NancyConventions nancyConventions)

        nancyConventions.StaticContentsConventions.AddStylesBundle("styles.css", true,

        nancyConventions.StaticContentsConventions.AddScriptsBundle("scripts.js", true,

And reference the bundles in HTML

<html lang="en">
  <meta charset="utf-8" />
  <link href="~/styles.css" rel="stylesheet" />
  <script src="~/scripts.js"></script>
← newer older →
.Net, Technology, Life, Whatever

Recent Posts

Tweetz 2.0.0 Released
Tweetz 2.0 Beta
VSColorOutput 2.7 - Time Stamps
Fixed Focal-Length Eyeglasses, a Programmer's Best Friend
How to Choose the Right VPN Service
Two Handy Command Line Scripts
Tweetz 1.3.2
More... (1088)