4 ms·
(I can't seem to reply to your comment, so replying here) You could look at using something like a Git pre-commit hook to do that pretty trivially. I personall
by cheald 15y ago
(I can't seem to reply to your comment, so replying here)
You could look at using something like a Git pre-commit hook to do that pretty trivially. I personally use a rake task that compiles all my Sass and Coffeescript to their respective CSS and JS files, then packs it into minified-and-gzipped files with jammit, then commit the resulting bundle. I end up serving pre-baked-and-concatenated assets and it works just fine.
- bguthrie 15y agoThis is the best way to do it, and using a continuous integration server to emit a binary as the output of your build, as our ancestors in compiled languages did in days of yore, is a good way to make it happen. You don't even need to commit it; just use the tarball (or whatever) as the artifact of deployment.