Minification tool for html and json
First add the library to the dependencies of your project like this:
toml
[dependencies]
minify = "1.0"
Afterwards you can import the library like this:
rust
extern crate minify;
The following rules are applied for html minification:
_<_html_>_
=> <html>
```rust extern crate minify; use minify::html::minify;
fn main() { let html = r#"
"#.into(); let html_minified = minify(html); } ```The following rules are applied for json minification:
```rust extern crate minify; use minify::json::minify;
fn main() { let json = r#" { "test": "test", "test2": 2 } "#.into(); let html_minified = minify(json); } ```
License: MIT