Static Site Squisher Version 0.2

I’ve been using Static Site Squisher on this site, and as I’ve written more blog posts and further optimized my templates, I’ve run across a few bugs in the minification process that needed to be fixed in order to make the process easily sustainable. The 0.2 release implements these fixes and adds a new feature to minify any stylesheets or JavaScript found inside the HTML files. The full changelog can be found below.

Changes

Fixes

  • No longer ruins formatting of text inside pre tag.

  • Much smarter renaming of HTML references to CSS and JavaScript files to their minified versions, preventing issues where content was being inadvertantly modified

  • No longer attempts to minify .min.css and .min.js files

Features

  • Now minifies inline CSS and JavaScript

Download

Source for this library is released under the terms of the MIT License. The latest source can be viewed on the project’s Bitbucket page. A snapshot of the source code for this release and a pre-compiled binary are released below.

Download binary

Download source

Written on August 22nd, 2014 by Dan Walker

Want to read more?

If you’ve enjoyed what you’ve seen so far, you might like some of my other posts. Visit the archive to see all of my past writings.

Blog Archive »
 

About the Author

Dan Walker is a programmer from Grand Rapids, MI. He works at Gordon Food Service.

More About Dan »

Get in touch