minify
Minification tool for html and json
Usage
First add the library to the dependencies of your project like this:
[]
= "1.2"
Afterwards you can import the library like this:
extern crate minify;
Minify Html
The following rules are applied for html minification:
- Removal of ascii control characters
- Removal of comments
- Removal of multiple whitespaces
- Removal of whitespaces before and after greater-than and less-than signs
_<_html_>_=><html>
extern crate minify;
use minify;
Minify JSON
The following rules are applied for json minification:
- Removal of ascii control characters
- Removal of whitespaces outside of strings
extern crate minify;
use minify;
License: MIT