-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMinify.sublime-settings
More file actions
131 lines (98 loc) · 4.81 KB
/
Minify.sublime-settings
File metadata and controls
131 lines (98 loc) · 4.81 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
// #####################
// # IMPORTANT NOTE! #
// #####################
//
// Please do not modify this file! This file holds the default settings of Minify.
//
// If you wish to customize these settings then create a `Settings -- User` file first
// and make your customization there.
//
// If you edit this file, your custom settings will be overwritten at the next update of Minify!
// #####################
// # Global Settings #
// #####################
// Save the file before doing any action (minify or beautify)?
"save_first": true,
// Auto-minify files on save?
"auto_minify_on_save": false,
// Open resulting file (minified or beautified)?
"open_file": true,
// Only Minify specified file types (css, js, json, html, svg) when "auto_minify_on_save" is used
"allowed_file_types": [
"css",
"js",
"json",
"html",
"svg"
],
// ############################
// # CSS Processing Options #
// ############################
// you can specify which CSS minifier to use such as "clean-css", "uglifycss" or "yui"
// notes: the default is "clean-css"; you must have java installed for "yui"
// "cssminifier": "clean-css",
// you may want to define the cleancss command with an absolute path
// "cleancss_command": "/usr/local/bin/cleancss",
// you can specify command line parameters for cleancss
"cleancss_options": "-O2 --skip-rebase",
// you may want to define the uglifycss command with an absolute path
// "uglifycss_command": "/usr/local/bin/uglifycss",
// you can specify command line parameters for uglifycss
// "uglifycss_options": "--max-line-len 250",
// you may want to define the js-beautify command with an absolute path
// "js-beautify_command": "/usr/local/bin/js-beautify",
// you can specify command line parameters for .css beautification
// "js-beautify_options": "--indent-size=2",
// if you need a CSS source map (supported by clean-css only) in the destination directory (same as original source), enable this option
"css_source_map": false,
// ###################################
// # JavaScript Processing Options #
// ###################################
// you may want to define the uglifyjs command with an absolute path
// "uglifyjs_command": "/usr/local/bin/uglifyjs",
// you can specify command line parameters for uglifyjs (for .js minification)
// "uglifyjs_options": "",
// do you want to keep comments when minifying javascript files?
"keep_comments": false,
// you can also specify which comments to keep
// if you set `keep_comments` to true and leave `comments_to_keep` false then uglifyjs will only keep JSDoc-style copyright comments
// but if you set `keep_comments` to true then you can also specify which comments to keep: set `comments_to_keep` to "all" to keep
// all comments or you can provide a regexp such as "/!/" (this will keep only comments which contain an exclamation mark)
"comments_to_keep": false,
// you can specify command line parameters for uglifyjs (for .js beautification)
// "uglifyjs_pretty_options": "indent-level=2",
// if you need a source map in the destination directory (same as original source), enable this option
"source_map": false,
// change to true if you are using any transpiler such as Babel or Typescript that generate map files for original code
// map file must be present in the same directory
"js_map_content": false,
// #############################
// # HTML Processing Options #
// #############################
// you may want to define the html-minifier command with an absolute path
// "html-minifier_command": "/usr/local/bin/html-minifier",
// you can specify command line parameters for .html minification
"html-minifier_options": "--collapse-boolean-attributes --collapse-whitespace --html5 --minify-css --minify-js --preserve-line-breaks --process-conditional-comments --remove-comments --remove-empty-attributes --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --quote-character '",
// you can specify command line parameters for .html beautification
// "js-beautify_html_options": "--indent-size=2",
// #############################
// # JSON Processing Options #
// #############################
// you may want to define the minjson command with an absolute path
// "minjson_command": "/usr/local/bin/minjson",
// ############################
// # SVG Processing Options #
// ############################
// you may want to define the svgo command with an absolute path
// "svgo_command": "/usr/local/bin/svgo",
// you can specify command line parameters for .svg minification
// "svgo_min_options": "--multipass",
// you can specify command line parameters for .svg prettification
// "svgo_pretty_options": "--multipass"
// ###############
// # Debugging #
// ###############
// Enable debug mode?
"debug_mode": false
}