Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 607 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 607 Bytes

Page Reducer

Very quick and sketchy way to minify a given Web document:

  • get HTML document;
  • gather all referenced CSS files, replace them with a single ref pointing to a new ad hoc static, reduced and minified CSS file;
  • (TODO) do the same for JS;
  • rewrite HTML doc, minify it.

Dependencies

Install & Use

$ brew uncss yuicompressor
OR
$ npm i uncss yuicompressor
$ gem install nokogiri htmlcompressor
$ ./red.rb http://yoursite/