Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML/CSS/JS build tool

I have a project which consist of a lot of static HTML and js files. I need a build tool that can concatenate and minify them.

I saw this great screencast that explains how to do it with ant and YUI. The only thing I'm missing is after the minified version is created , how can i replace references to the JS/CSS files in the HTML, so it will reference the new minified version?

Is there a better/easier tool for this (not GPL/LGPL license)?

like image 508
Tomer Avatar asked Sep 26 '26 13:09

Tomer


1 Answers

Grunt is pretty good, and supports most of those things. This plugin will re-write your CSS link tags, though normally (and for JS) you'd just write the link/script tags to point straight to the minified version anyway, and continually have it build your files.

like image 186
izb Avatar answered Sep 28 '26 04:09

izb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!