RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Easily minify javascript and css using Fixie Shrinker

Most Rails plugins that minify javascript and css do it on deployment on the server. This requires that the server has the tools installed for doing the minification. What you want is to have the minification process happen constantly during development, alerting you to any minification issues immediately.

Fixie Shrinker does just that. Released two days ago. At http://github.com/joevandyk/fixie_shrinker/tree/master

Comments

The motivation for this was that I kept running into problems where the js worked fine in dev mode, but then once deployed (and either combined into one file with the standard rails packager or minified by other software), it failed.

With this tool, invalid javascript fails bigtime on your next page refresh. Not when doing the deploy.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in