11
11
css-html-js-minify.py --help
12
12
13
13
usage: css-html-js-minify.py [-h] [--version] [--wrap] [--prefix PREFIX]
14
- [--timestamp] [--quiet] [--checkupdates]
15
- [--tests] [--hash] [--gzip] [--comments]
16
- [--overwrite]
14
+ [--timestamp] [--quiet] [--obfuscate]
15
+ [--checkupdates] [--tests] [--hash] [--gzip]
16
+ [--comments] [--overwrite] [--after AFTER]
17
+ [--before BEFORE] [--watch]
17
18
fullpath
18
19
19
-
20
20
CSS-HTML-JS-Minify. StandAlone Async single-file cross-platform no-
21
21
dependencies Unicode-ready Python3-ready Minifier for the Web.
22
22
23
23
positional arguments:
24
24
fullpath Full path to local file or folder.
25
25
26
- optional arguments:
27
- -h, --help show this help message and exit
28
- --version show programs version number and exit
29
- --wrap Wrap Output to ~ 80 chars per line, CSS Only.
30
- --prefix PREFIX Prefix string to prepend on output filenames.
31
- --timestamp Add a Time Stamp on all CSS/JS output files.
32
- --quiet Quiet, Silent, force disable all Logging.
33
- --checkupdates Check for Updates from Internet while running.
34
- --tests Run all built-in Unit Tests, report and exit.
35
- --hash Add SHA1 HEX-Digest 11chars Hash to Filenames.
36
- --gzip GZIP Minified files as ' *.gz' . CSS/JS Only.
37
- --comments Keep Comments, CSS/HTML Only.
38
- --overwrite Force overwrite all in-place (Not Recommended)
39
-
40
-
41
- CSS-HTML-JS-Minify:
42
- Takes a file or folder full path string and process all CSS/HTML/JS found.
43
- If argument is not file/folder will fail.
44
- Check Updates works on Python3.
45
- StdIn to StdOut is deprecated since may fail with unicode characters.
46
- SHA1 HEX-Digest 11 Chars Hash on Filenames is used for Server Cache.
26
+ optional arguments:
27
+ -h, --help show this help message and exit
28
+ --version show program' s version number and exit
29
+ --wrap Wrap Output to ~80 chars per line, CSS Only.
30
+ --prefix PREFIX Prefix string to prepend on output filenames.
31
+ --timestamp Add a Time Stamp on all CSS/JS output files.
32
+ --quiet Quiet, Silent, force disable all Logging.
33
+ --obfuscate Obfuscate Javascript. JS Only. (Recommended).
34
+ --checkupdates Check for Updates from Internet while running.
35
+ --tests Run all built-in Unit Tests, report and exit.
36
+ --hash Add SHA1 HEX-Digest 11chars Hash to Filenames.
37
+ --gzip GZIP Minified files as ' * .gz' , CSS/JS Only.
38
+ --comments Keep Comments, CSS/HTML Only (Not Recommended)
39
+ --overwrite Force overwrite all in-place (Not Recommended)
40
+ --after AFTER Command to execute after run (Experimental).
41
+ --before BEFORE Command to execute before run (Experimental).
42
+ --watch Re-Compress if file changes (Experimental).
43
+
44
+ CSS-HTML-JS-Minify: Takes a file or folder full path string and process all
45
+ CSS/HTML/JS found. If argument is not file/folder will fail. Check Updates
46
+ works on Python3. StdIn to StdOut is deprecated since may fail with unicode
47
+ characters. SHA1 HEX-Digest 11 Chars Hash on Filenames is used for Server
48
+ Cache. CSS Properties are AlphaSorted,to help spot cloned ones,Selectors not.
49
+ Watch works for whole Folders, with minimum of ~60 Secs between runs.
47
50
48
51
```
49
52
@@ -55,6 +58,8 @@ SHA1 HEX-Digest 11 Chars Hash on Filenames is used for Server Cache.
55
58
- Can check for updates for itself.
56
59
- Full Unicode/UTF-8 support.
57
60
- Smooth CPU usage.
61
+ - Can Obfuscate, GZIP and Hash files, also Watch for changes on files.
62
+ - Can execute arbitrary commands after and before running.
58
63
- `*.css` files are saved as `*.min.css`, `*.js` are saved as `*.min.js`, `*.htm` are saved as `*.html`
59
64
60
65
0 commit comments