sebcode / kompalator

Script to merge html+css+js+img into one standalone HTML file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kompalator by Sebastian Volland

Script to merge html+css+js+img into a standalone HTML file.

Processes:

 * <script src="..."/> => <script>...</script>
 * <link href="..."/> => <style>...</style>
 * <img src="..."/> => <img src="datauri:..."/>

Uses yuicompressor to minify js and css. Place yuicompressor*.jar into
the same directory as kompalator.php.

Usage: ./kompalator.php yourfile.html > output.html

About

Script to merge html+css+js+img into one standalone HTML file.


Languages

Language:PHP 98.4%Language:JavaScript 1.6%