Max
Max

Reputation: 1195

Compress/minify/strip comments from Javascript using PHP

I am working on a mobile web app that outputs a number of CSS,HTML ans JS files into a single HTML file.

I was just wondering if anyone knew of libraries/classes that can automatically compress (and cache) the files before adding them to the html file.

Upvotes: 0

Views: 334

Answers (1)

Manse
Manse

Reputation: 38147

minify (php >= 5.1.6)

Combines, minifies, and caches JavaScript and CSS files on demand to speed up page loads.

Another good one (which i use with Symfony(php framework))

Assetic

Upvotes: 1

Related Questions