]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | # minifier-rs |
2 | ||
b7449926 | 3 | Minifier tool/lib for JS/CSS/JSON files. |
94b46f34 XL |
4 | |
5 | This crate provides both a library and binary, depending on your needs. | |
6 | ||
7 | ## Usage | |
8 | ||
9 | To use the binary, just run like this: | |
10 | ||
11 | ``` | |
12 | > cargo run test.js | |
13 | ``` | |
14 | ||
15 | To use the library, add it into your `Cargo.toml` file like this: | |
16 | ||
17 | ```toml | |
18 | [dependencies] | |
b7449926 | 19 | minifier = "^0.0.1" |
94b46f34 XL |
20 | ``` |
21 | ||
22 | Then import it into your code like this: | |
23 | ||
24 | ```rust | |
25 | extern crate minifier; | |
26 | ``` | |
27 | ||
28 | ## WARNING!! | |
29 | ||
30 | Please be aware that this is still at a very early stage of development so you shouldn't rely on it too much! |