-
Notifications
You must be signed in to change notification settings - Fork 40
renames classes and ids in your css, javascript, and html to save bytes and obfuscate your code
ccampbell/html-muncher
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
-------------- ABOUT -------------- HTML Muncher is a Python utility that rewrites CSS, HTML, and JavaScript files in order to save precious bytes and obfuscate your code if your stylesheet starts out looking like this: .file2 #special { font-size: 1.5em; color: #F737FF; } .file2 #special2 { letter-spacing: 0; } .box { border: 2px solid #aaa; -webkit-border-radius: 5px; background: #eee; padding: 5px; } it will be rewritten as .a #a { font-size: 1.5em; color: #F737FF; } .a #b { letter-spacing: 0; } .b { border: 2px solid #aaa; -webkit-border-radius: 5px; background: #eee; padding: 5px; } -------------- INSTALLATION -------------- easy_install http://htmlmuncher.com/htmlmuncher.egg OR: download the source from http://github.com/ccampbell/html-muncher cd html-muncher python setup.py install -------------- USAGE -------------- http://htmlmuncher.com/#usage OR: munch --help -------------- EXAMPLES -------------- to update a bunch of stylesheets and views: munch --css demo/css --html demo/views to update a single file with inline styles/javascript: munch --html demo/single-file/view-with-inline-styles.html you can also select specific files: munch --css file1.css,file2.css --html view1.html,view2.html or you can mix and match files and directories munch --css /my/css/directory,global.css --html /view/directory1,/view/directory2,/view/directory3,template.html
About
renames classes and ids in your css, javascript, and html to save bytes and obfuscate your code
Resources
Stars
Watchers
Forks
Packages 0
No packages published