Tomer
Tomer

Reputation: 17940

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)?

Upvotes: 3

Views: 2373

Answers (2)

Kaushick Gope
Kaushick Gope

Reputation: 172

You can try minify JS and CSS. Minify JS can make 1 JS file merging multiple JS file and same for CSS.

Upvotes: 0

izb
izb

Reputation: 51820

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.

Upvotes: 5

Related Questions