Skip to content

Comment on Sprockets: JavaScript dependency management and concatenation (SvN)parent

Comments

Cool, django-compress looks similar to the sprockets-rails plugin. A few differences:

django-compress makes you define your source files and concatenation order in an array in a configuration file. Sprockets lets you define your dependencies with annotations in the source files themselves, meaning plugins can have their own dependencies and integrate themselves with your applicaton's build system.

Sprockets doesn't do minification yet.

Sprockets doesn't do CSS concatenation, either. But it does have an asset provisioning feature, where plugins can specify a collection of files (e.g. css, images) that should be copied into the document root. (Rails itself provides basic CSS and JS concatenation.)

It's nice to see other similar but independent implementations of the same idea.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.