Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML + JavaScript + CSS compact tool

I need a tool which can minify, optimize and munge many files of those possible types

  • HTML (minify only)
  • JavaScript (minify, optimize and munge)
  • CSS (minify)

The final result should be one HTML file only with all JavaScript and CSS embedded or in the worst scenario 3 files respectively for HTML, JS, and CSS.

I am aware of tools like YUI Compressor etc. What I currently have not found is the type of compressor which will work on all those file types and merge them in one huge file only.

like image 509
Gad D Lord Avatar asked Jun 28 '10 20:06

Gad D Lord


People also ask

How do I compress JavaScript and CSS files?

To minify CSS, try CSSNano and csso. To minify JavaScript, try UglifyJS. The Closure Compiler is also very effective. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.

How do I combine HTML CSS and JavaScript?

To link a CSS file with your HTML file, you have to write the next script on your HTML file inside the head tag. To link a Js file with your HTML, you only have to add the source of the script inside the body tag or outside; it doesn't matter.


1 Answers

If you're not using gzip yet, start using it already and we can close this thing out ;)

like image 77
Dagg Nabbit Avatar answered Nov 07 '22 22:11

Dagg Nabbit