forked from jmrocela/munchjs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
usage
41 lines (25 loc) · 1.96 KB
/
usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
----------------------
Munch.js
----------------------
USAGE:
munch --css file1.css,/path/to/css1,file2.css,file3.css --view /path/to/views1,file1.html,/path/to/views2/,file3.html --js main.js,/path/to/js
REQUIRED ARGUMENTS:
--view {path/to/views} html files to rewrite (comma separated list of directories and files)
OPTIONAL ARGUMENTS:
--css {path/to/css} css files to rewrite (comma separated list of directories and files)
--js {path/to/js} js files to rewrite (comma separated list of directories and files)
--manifest a file where all options available for muncher are stored. this can be any
json files or a .muncher file by default. useful for deployment purposes.
--view-ext {extension} sets the extension to look for in the view directory (defaults to html)
--css-ext sets the extension to look for in the css directory (defaults to css)
--js-ext sets the extension to look for in the js directory (defaults to js)
--ignore {classes,ids} comma separated list of classes or ids to ignore when rewriting css (ie .sick_class,#sweet_id)
--compress-view strips new line characters to compress html files specified with --html
--compress-css strips new line characters to compress css files specified with --css
--map writes all mapped ids and classes into a file specified
--read uses all the mapped ids and classes in a specified file to be used as
a dictionary for the rewrite process
--parsers modules for parsing and writing (comma separated list of module names)
check out https://github.com/jmrocela/munch-jquery for an example.
--show-savings will output how many bytes were saved by munching
--silent do not output any information about the process (not recommended)