|
2 | 2 | "name": "es6-css-minify", |
3 | 3 | "displayName": "JS & CSS Minifier (Minify)", |
4 | 4 | "description": "Easily Minify ES5/ES6/ES7/ES8 and CSS. Supports minify on save, minify selection & custom configurations!", |
5 | | - "version": "3.2.0", |
| 5 | + "version": "3.3.0", |
6 | 6 | "publisher": "olback", |
7 | 7 | "icon": "icon.png", |
8 | 8 | "galleryBanner": { |
|
12 | 12 | "license": "SEE LICENSE IN LICENSE.md", |
13 | 13 | "homepage": "https://github.com/olback/es6-css-minify", |
14 | 14 | "bugs": "https://github.com/olback/es6-css-minify/issues", |
15 | | - "qna": "https://github.com/olback/es6-css-minify/issues", |
| 15 | + "qna": "https://github.com/olback/es6-css-minify/issues/new?template=question.md", |
16 | 16 | "repository": { |
17 | 17 | "type": "git", |
18 | 18 | "url": "https://github.com/olback/es6-css-minify.git" |
|
38 | 38 | "onCommand:es6-css-minify.loadConfig", |
39 | 39 | "onCommand:es6-css-minify.minify", |
40 | 40 | "onCommand:es6-css-minify.minifySelection", |
| 41 | + "onCommand:es6-css-minify.minifyExplorer", |
41 | 42 | "onCommand:es6-css-minify.exportConfig", |
42 | 43 | "onLanguage:css", |
43 | 44 | "onLanguage:javascript", |
|
95 | 96 | "command": "es6-css-minify.minifySelection", |
96 | 97 | "title": "Minify: Selection" |
97 | 98 | }, |
| 99 | + { |
| 100 | + "command": "es6-css-minify.minifyExplorer", |
| 101 | + "title": "Minify: File" |
| 102 | + }, |
98 | 103 | { |
99 | 104 | "command": "es6-css-minify.exportConfig", |
100 | 105 | "title": "Minify: Export Configuration" |
|
145 | 150 | "default": ".uglifyrc" |
146 | 151 | }, |
147 | 152 | "es6-css-minify.genJSmap": { |
148 | | - "type": "boolean", |
149 | | - "description": "Generate JavaScript sourcemap files.", |
150 | | - "default": false |
| 153 | + "description": "Generate JavaScript sourcemap files. Setting this to null will give control to js.sourceMap.", |
| 154 | + "default": false, |
| 155 | + "enum": [ |
| 156 | + true, |
| 157 | + false, |
| 158 | + null |
| 159 | + ] |
151 | 160 | }, |
152 | 161 | "es6-css-minify.jsMapSource": { |
153 | 162 | "type": "string", |
|
166 | 175 | }, |
167 | 176 | "es6-css-minify.js": { |
168 | 177 | "type": "object", |
169 | | - "description": "Uglify-es settings. For more info visit https://www.npmjs.com/package/uglify-es#parse-options.", |
| 178 | + "description": "Terser/Uglify-es settings. For more info visit https://www.npmjs.com/package/terser#minify-options.", |
170 | 179 | "default": { |
171 | 180 | "mangle": false, |
172 | 181 | "compress": { |
173 | 182 | "unused": false |
174 | 183 | }, |
175 | 184 | "output": { |
176 | 185 | "quote_style": 0 |
177 | | - } |
| 186 | + }, |
| 187 | + "warnings": true |
178 | 188 | } |
179 | 189 | }, |
180 | 190 | "es6-css-minify.cleancssConfigFile": { |
|
183 | 193 | "default": ".cleancssrc" |
184 | 194 | }, |
185 | 195 | "es6-css-minify.genCSSmap": { |
186 | | - "type": "boolean", |
187 | | - "description": "Generate CSS sourcemap files.", |
188 | | - "default": false |
| 196 | + "description": "Generate CSS sourcemap files. Setting this to null will give control to css.sourceMap.", |
| 197 | + "default": false, |
| 198 | + "enum": [ |
| 199 | + true, |
| 200 | + false, |
| 201 | + null |
| 202 | + ] |
189 | 203 | }, |
190 | 204 | "es6-css-minify.cssMapSource": { |
191 | 205 | "type": "string", |
|
205 | 219 | "es6-css-minify.css": { |
206 | 220 | "type": "object", |
207 | 221 | "description": "Clean-CSS settings. For more info visit https://www.npmjs.com/package/clean-css.", |
| 222 | + "properties": { |
| 223 | + "rebase": { |
| 224 | + "description": "", |
| 225 | + "type": "boolean", |
| 226 | + "default": false |
| 227 | + } |
| 228 | + }, |
208 | 229 | "default": { |
209 | 230 | "rebase": false |
210 | 231 | } |
|
235 | 256 | "editor/context": [ |
236 | 257 | { |
237 | 258 | "command": "es6-css-minify.minify", |
238 | | - "group": "es6-css-minify" |
| 259 | + "group": "es6-css-minify", |
| 260 | + "when": "editorLangId == javascript || editorLangId == css" |
| 261 | + }, |
| 262 | + { |
| 263 | + "command": "es6-css-minify.minifySelection", |
| 264 | + "group": "es6-css-minify", |
| 265 | + "when": "editorLangId == javascript && editorHasSelection" |
| 266 | + }, |
| 267 | + { |
| 268 | + "command": "es6-css-minify.minifySelection", |
| 269 | + "group": "es6-css-minify", |
| 270 | + "when": "editorLangId == css && editorHasSelection" |
| 271 | + }, |
| 272 | + { |
| 273 | + "command": "es6-css-minify.minifySelection", |
| 274 | + "group": "es6-css-minify", |
| 275 | + "when": "editorLangId == json && editorHasSelection" |
| 276 | + } |
| 277 | + ], |
| 278 | + "explorer/context": [ |
| 279 | + { |
| 280 | + "command": "es6-css-minify.minifyExplorer", |
| 281 | + "group": "es6-css-minify", |
| 282 | + "when": "resourceLangId == javascript || resourceLangId == css" |
239 | 283 | } |
240 | 284 | ] |
241 | 285 | } |
|
0 commit comments