cssnano 5.0.1 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ function resolvePreset(preset) {
42
42
 
43
43
 
44
44
  if (fn === 'default') {
45
- return require("cssnano-preset-default")(options).plugins;
45
+ return require('cssnano-preset-default')(options).plugins;
46
46
  } // For non-JS setups; we'll need to invoke the preset ourselves.
47
47
 
48
48
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "cssnano",
3
- "version": "5.0.1",
3
+ "version": "5.0.5",
4
4
  "description": "A modular minifier, built on top of the PostCSS ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "bundle-size": "webpack --json --config src/__tests__/_webpack.config.js | webpack-bundle-size-analyzer",
8
8
  "prebuild": "del-cli dist",
9
- "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"",
9
+ "build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
10
10
  "prepublish": "yarn build"
11
11
  },
12
12
  "funding": {
@@ -25,7 +25,7 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "cosmiconfig": "^7.0.0",
28
- "cssnano-preset-default": "^5.0.0",
28
+ "cssnano-preset-default": "^5.1.2",
29
29
  "is-resolvable": "^1.1.0"
30
30
  },
31
31
  "homepage": "https://github.com/cssnano/cssnano",
@@ -48,11 +48,11 @@
48
48
  "node": "^10 || ^12 || >=14.0"
49
49
  },
50
50
  "devDependencies": {
51
- "autoprefixer": "^10.0.2",
52
- "postcss": "^8.2.1"
51
+ "autoprefixer": "^10.2.0",
52
+ "postcss": "^8.2.15"
53
53
  },
54
54
  "peerDependencies": {
55
- "postcss": "^8.2.1"
55
+ "postcss": "^8.2.15"
56
56
  },
57
- "gitHead": "4e95e1fba3304097df467043abb1d76dbd425539"
57
+ "gitHead": "9b3c54fd94f3e2bdb503d1e21f171d7fe02f33ca"
58
58
  }
package/CHANGELOG.md DELETED
@@ -1,788 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [5.0.1](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0...cssnano@5.0.1) (2021-04-13)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **cssnano:** replace opencollective with funding field. ([#1047](https://github.com/cssnano/cssnano/issues/1047)) ([3dee7c5](https://github.com/cssnano/cssnano/commit/3dee7c553350e43ad0750a9478a63cf897e5510f)), closes [#1046](https://github.com/cssnano/cssnano/issues/1046)
12
-
13
-
14
-
15
-
16
-
17
- # [5.0.0](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0-rc.2...cssnano@5.0.0) (2021-04-06)
18
-
19
- **Note:** Version bump only for package cssnano
20
-
21
-
22
-
23
-
24
-
25
- # [5.0.0-rc.2](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0-rc.1...cssnano@5.0.0-rc.2) (2021-03-15)
26
-
27
-
28
- ### Bug Fixes
29
-
30
- * update SVGO ([aa07cfd](https://github.com/cssnano/cssnano/commit/aa07cfd62c82ed4b1e87219eea8d0ed99635e4ca))
31
-
32
-
33
-
34
-
35
-
36
- # [5.0.0-rc.1](https://github.com/cssnano/cssnano/compare/cssnano@5.0.0-rc.0...cssnano@5.0.0-rc.1) (2021-03-04)
37
-
38
- **Note:** Version bump only for package cssnano
39
-
40
-
41
-
42
-
43
-
44
- # 5.0.0-rc.0 (2021-02-19)
45
-
46
-
47
- ### Bug Fixes
48
-
49
- * **postcss-ordered-values:** columns transform returning string instead of the AST ([#928](https://github.com/cssnano/cssnano/issues/928)) ([a5d6d36](https://github.com/cssnano/cssnano/commit/a5d6d364e0815ecb198a95de301f3554ccce4f78))
50
- * **unique-selector:** removed sorting and involving selector comments ([#857](https://github.com/cssnano/cssnano/issues/857)) ([3fa875d](https://github.com/cssnano/cssnano/commit/3fa875dade2138e1a531dce1f8b79814cb39dbc9))
51
-
52
-
53
- ### chore
54
-
55
- * minimum require version of node is 10.13 ([#871](https://github.com/cssnano/cssnano/issues/871)) ([28bda24](https://github.com/cssnano/cssnano/commit/28bda243e32ce3ba89b3c358a5f78727b3732f11))
56
-
57
-
58
- ### Features
59
-
60
- * css declaration sorter ([#855](https://github.com/cssnano/cssnano/issues/855)) ([613d562](https://github.com/cssnano/cssnano/commit/613d562ae79e7e169c80b523b7c2c9b0093bc1d8))
61
- * migarete to PostCSS 8 ([#975](https://github.com/cssnano/cssnano/issues/975)) ([40b82dc](https://github.com/cssnano/cssnano/commit/40b82dca7f53ac02cd4fe62846dec79b898ccb49))
62
- * **postcss-reduce-transforms:** improve optimizations ([#745](https://github.com/cssnano/cssnano/issues/745)) ([b0f0d89](https://github.com/cssnano/cssnano/commit/b0f0d892316d7b77e8033a6dc8d67745043a5072))
63
-
64
-
65
- ### BREAKING CHANGES
66
-
67
- * minimum supported `postcss` version is `8.2.1`
68
- * minimum require version of node is 10.13
69
-
70
-
71
-
72
- ## 4.1.10 (2019-02-14)
73
-
74
-
75
-
76
- ## 4.1.9 (2019-02-12)
77
-
78
-
79
- ### Bug Fixes
80
-
81
- * initial loading time ([#654](https://github.com/cssnano/cssnano/issues/654)) ([de2ef07](https://github.com/cssnano/cssnano/commit/de2ef074a0c7da94c22a5b0336e6c4ca2a94f1b5))
82
-
83
-
84
-
85
- ## 4.1.7 (2018-10-22)
86
-
87
-
88
-
89
- ## 4.1.6 (2018-10-22)
90
-
91
-
92
-
93
- ## 4.1.5 (2018-10-17)
94
-
95
-
96
- ### Bug Fixes
97
-
98
- * toggling of plugins in presets using boolean configuration option ([#622](https://github.com/cssnano/cssnano/issues/622)) ([15076f1](https://github.com/cssnano/cssnano/commit/15076f145118507e010722cc9ed548ffe1b91f8c))
99
-
100
-
101
-
102
- ## 4.1.4 (2018-09-27)
103
-
104
-
105
-
106
- ## 4.1.3 (2018-09-25)
107
-
108
-
109
-
110
- ## 4.1.2 (2018-09-25)
111
-
112
-
113
-
114
- ## 4.1.1 (2018-09-24)
115
-
116
-
117
- ### Bug Fixes
118
-
119
- * parse error with iPhone X feature ([#614](https://github.com/cssnano/cssnano/issues/614)) ([a3704a7](https://github.com/cssnano/cssnano/commit/a3704a76a631b1cd907ab0c0a8637a622769676d))
120
-
121
-
122
-
123
- # 4.1.0 (2018-08-24)
124
-
125
-
126
-
127
- ## 4.0.5 (2018-07-30)
128
-
129
-
130
-
131
- ## 4.0.4 (2018-07-25)
132
-
133
-
134
-
135
- ## 4.0.3 (2018-07-18)
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * **postcss-merge-longhand:** not mangle border output ([#555](https://github.com/cssnano/cssnano/issues/555)) ([9a70605](https://github.com/cssnano/cssnano/commit/9a706050b621e7795a9bf74eb7110b5c81804ffe)), closes [#553](https://github.com/cssnano/cssnano/issues/553) [#554](https://github.com/cssnano/cssnano/issues/554)
141
-
142
-
143
-
144
-
145
-
146
- # 4.1.10
147
-
148
- ## Bug Fixes
149
-
150
- * `stylehacks` does not throw error on `[attr]` selector
151
-
152
- # 4.1.9
153
-
154
- ## Performance Improvements
155
-
156
- * `postcss-colormin`: increase performance
157
- * `postcss-discard-comments`: increase performance
158
- * `postcss-merge-rules` increase performance
159
- * `postcss-minify-params` increase performance
160
- * `postcss-minify-selectors`: increase performance
161
- * `postcss-normalize-display-values`: increase performance
162
- * `postcss-normalize-positions`: increase performance
163
- * `postcss-normalize-repeat-style`: increase performance
164
- * `postcss-normalize-string`: increase performance
165
- * `postcss-normalize-timing-functions`: increase performance
166
- * `postcss-normalize-whitespace`: increase performance
167
- * `postcss-ordered-values`: increase performance
168
- * `postcss-reduce-transforms`: increase performance
169
- * `postcss-svgo`: increase performance
170
-
171
- ## Bug Fixes
172
-
173
- * `postcss-merge-longhand` handle uppercase properties and values
174
- * `postcss-minify-gradients` handle uppercase properties and values
175
- * `postcss-minify-params` do break `@page` rules
176
- * `postcss-reduce-idents` handle uppercase at-rules
177
- * `postcss-reduce-initial` now uses `repeat` as initial value for `mask-repeat`
178
- * `postcss-reduce-initial` handle uppercase value when you convert to initial
179
- * `stylehacks` handle uppercase properties and values
180
-
181
- # 4.1.8
182
-
183
- ## Performance Improvements
184
-
185
- * initial loading time (`require('cssnano')`).
186
-
187
- ## Bug Fixes
188
-
189
- * `postcss-merge-longhand` correctly merging border properties with custom properties.
190
-
191
- # 4.1.7
192
-
193
- ## Bug Fixes
194
-
195
- * republish `cssnano` due broken release.
196
-
197
- # 4.1.6
198
-
199
- ## Bug Fixes
200
-
201
- * `postcss-merge-longhand` doesn't throw error when merge a border property.
202
-
203
- # 4.1.5
204
-
205
- ## Bug Fixes
206
-
207
- * `cssnano` now allow to toggling of plugins in presets using boolean configuration option.
208
- * `postcss-merge-longhand` doesn't merge properties with `unset`.
209
- * `postcss-merge-longhand` correctly merge borders with custom properties.
210
- * `postcss-merge-longhand` doesn't merge redundant values if declarations are of different importance.
211
-
212
- ## Other changes
213
-
214
- * `postcss-calc` updated to `7.0.0` version.
215
-
216
- # 4.1.4
217
-
218
- ## Other changes
219
-
220
- * `css-declaration-sorter` now use PostCSS 7.
221
- * `postcss-calc` now use PostCSS 7.
222
-
223
- # 4.1.3
224
-
225
- ## Other changes
226
-
227
- * `postcss-minify-font-values` now use PostCSS 7.
228
- * `postcss-discard-duplicates` now use PostCSS 7.
229
-
230
- # 4.1.2
231
-
232
- ## Bug Fixes
233
-
234
- * `postcss-svgo` now handle DataURI with uppercase `data` value (`DATA:image/*;...`).
235
-
236
- # 4.1.1
237
-
238
- ## Bug Fixes
239
-
240
- * `css-declaration-sorter` was removed from default prevent.
241
- * `postcss-normalize-timing-functions` doesn't lowercased property anymore.
242
- * `postcss-normalize-positons` now handles uppercase properties.
243
- * `postcss-normalize-url` now is case-insensitive.
244
- * `postcss-merge-idents` now is case-insensitive.
245
- * `postcss-merge-rules` now is case-insensitive.
246
- * `postcss-minify-selectors` now is case-insensitive.
247
- * `postcss-minify-font-values` now is case-insensitive.
248
- * `postcss-normalize-unicode` now has correct dependencies.
249
- * `postcss-minify-params` now has correct dependencies.
250
-
251
- ## Other changes
252
-
253
- * `cssnano-preset-advanced` use Autoprefixer 9.
254
- * use PostCSS 7 in all plugins.
255
-
256
- # 4.1.0
257
-
258
- ## Bug Fixes
259
-
260
- * `postcss-merge-longhand` doesn't mangle borders.
261
-
262
- ## Features
263
-
264
- * `postcss-ordered-values` support ordering animation values.
265
-
266
- # 4.0.5
267
-
268
- ## Bug Fixes
269
-
270
- * `postcss-merge-longhand` now correctly merges borders with custom properties.
271
- * `postcss-merge-longhand` doesn't throw error in some `border` merge cases.
272
-
273
- # 4.0.4
274
-
275
- ## Bug Fixes
276
-
277
- * `postcss-merge-longhand` doesn't drop border-width with custom property from border shorthand.
278
- * `postcss-merge-longhand` doesn't convert `currentColor`.
279
- * `postcss-merge-longhand` doesn't merge border properties if there is a shorthand property between them.
280
-
281
- # 4.0.3
282
-
283
- ## Bug Fixes
284
-
285
- * `postcss-merge-longhand` incorrect minification of `border` (`border-*`) declarations.
286
-
287
- # 4.0.2
288
-
289
- ## Bug Fixes
290
-
291
- * `postcss-merge-longhand` don't explode declarations with custom properties.
292
- * `postcss-colormin` now better transform to `hsl`.
293
-
294
- # 4.0.1
295
-
296
- ## Bug Fixes
297
-
298
- * `browserslist` version incompatibility with `caniuse-api`.
299
-
300
- # 4.0.0
301
-
302
- ## Breaking changes
303
-
304
- * We dropped support for Node 4, now requiring at least Node 6.9.
305
-
306
- ## Features
307
-
308
- * postcss-merge-longhand now optimises `border-spacing` property.
309
-
310
- ## Bug Fixes
311
-
312
- * postcss-normalize-unicode doesn't change `U` to lowercase for `IE` <= 11 and `Edge` <= 15.
313
- * postcss-merge-longhand works with custom properties (Example `a { border-style:dotted; border-style:var(--variable) }`) correctly.
314
- * postcss-ordered-values handle `border` property with invalid border width value correctly.
315
- * postcss-merge-rules handles `:-ms-input-placeholder` and `::-ms-input-placeholder` selectors correctly.
316
- * postcss-merge-rules works with `all` property correctly.
317
- * postcss-normalize-url don't handle empty `url` function.
318
- * postcss-normalize-url handles `data` and `*-extension://` URLs correctly.
319
- * postcss-colormin adds whitespace after minified value and before function.
320
- * postcss-minify-font-values better escapes font name.
321
- * postcss-minify-params doesn't remove `all` for IE.
322
-
323
- ## Other changes
324
-
325
- * update all dependencies to latest.
326
- * better handles uppercase selectors/properties/values/units.
327
-
328
- # 4.0.0-rc.2
329
-
330
- ## Features
331
-
332
- * Includes the new release candidate for postcss-selector-parser 3.
333
- * Refactors comments tokenizing in postcss-discard-comments to be more
334
- memory efficient.
335
- * Adds css-declaration-sorter for improved gzip compression efficiencies
336
- (thanks to @Siilwyn).
337
- * postcss-svgo now optimises base 64 encoded SVG where possible
338
- (thanks to @evilebottnawi).
339
- * stylehacks now supports `@media \0screen\,screen\9 {}` hacks
340
- (thanks to @evilebottnawi).
341
-
342
- ## Bug Fixes
343
-
344
- * Fixed handling of package.json configuration (thanks to @andyjansson).
345
- * Fixed `resolveConfig` for a `Root` node without a `source` property
346
- (thanks to @darthmaim).
347
- * Improved radial gradient handling (thanks to @pigcan).
348
- * stylehacks now properly accounts for vendor prefixes
349
- (thanks to @evilebottnawi).
350
-
351
- # 4.0.0-rc.1
352
-
353
- ## Bug Fixes
354
-
355
- * cssnano: Resolved an issue with external configuration which wasn't
356
- being loaded correctly (thanks to @andyjansson).
357
- * postcss-minify-params: Resolved an issue with cssnano's handling of the
358
- `@value` syntax from css-modules to better integrate with css-loader.
359
-
360
- # 4.0.0-rc.0
361
-
362
- Since version 4 has been in-development for some time, we thought it would be
363
- best to release an alpha version so that we could catch any issues before
364
- the actual release.
365
-
366
- ## Breaking changes
367
-
368
- * cssnano & its plugins have been upgraded to PostCSS 6.x. Please ensure that
369
- for optimal results that you use cssnano with a PostCSS 6 compatible runner
370
- & that any other plugins are also using PostCSS 6.
371
- * cssnano is now essentially a preset loader and does not contain any built-in
372
- transforms (instead, it delegates to `cssnano-preset-default` by default).
373
- Due to the new architecture, it's not possible to exclude asynchronous
374
- transforms and run it synchronously, unlike in 3.x. Any transforms that
375
- were "core" modules have now been extracted out into separate packages.
376
- * Because of the new preset system, cssnano will not accept any transformation
377
- options; these must be set in the preset. The option names remain mostly the
378
- same, except some cases where "core" modules have been extracted out:
379
-
380
- * `core` is now `normalizeWhitespace`.
381
- * `reduceBackgroundRepeat` is now `normalizeRepeatStyle`.
382
- * `reduceDisplayValues` is now `normalizeDisplayValues`.
383
- * `reducePositions` is now `normalizePositions`.
384
- * `reduceTimingFunctions` is now `normalizeTimingFunctions`.
385
- * `styleCache` is now `rawCache`.
386
-
387
- When excluding transforms, we now have an `exclude` option (in 3.x this was
388
- named `disable`). Similarly, the `safe` option was removed; the defaults
389
- are now much less aggressive.
390
- * By default, the following transforms are no longer applied to any input CSS.
391
- You may see an increased output file size as a result:
392
-
393
- * `autoprefixer`
394
- * `postcss-discard-unused`
395
- * `postcss-merge-idents`
396
- * `postcss-reduce-idents`
397
- * `postcss-zindex`
398
-
399
- Note that you can load `cssnano-preset-advanced` instead which *does* contain
400
- these transforms.
401
- * We no longer detect previous plugins to silently exclude our own, and now
402
- consider this to be an anti-pattern. So `postcss-filter-plugins` was removed.
403
- * We also changed some options to make the default transforms safer:
404
-
405
- * `postcss-minify-font-values`: `removeAfterKeyword` set to `false` from `true`.
406
- * `postcss-normalize-url`: `stripWWW` set to `false` from `true`.
407
-
408
- * cssnano now does not accept the `sourcemap` shortcut option; please refer
409
- to the PostCSS documentation on sourcemaps. The `quickstart.js` file included
410
- with this module will give you a good starting point.
411
- * `cssnano.process` is no longer a custom method; we use the built-in `process`
412
- method exposed on each PostCSS plugin. The new signature is
413
- `cssnano.process(css, postcssOpts, cssnanoOpts)`, in 3.x it was
414
- `cssnano.process(css, cssnanoOpts)`.
415
- * We dropped support for Node 0.12, now requiring at least Node 4.
416
- * Finally, cssnano is now developed as a monorepo, due to the fact that some
417
- transforms have a lot of grey area/overlap. Due to this, some modules have
418
- been refactored to delegate responsibility to others, such that duplication
419
- of functionality is minimized. For instance, `postcss-colormin` will no
420
- longer compress whitespace or compress numbers, as those are handled by
421
- `postcss-normalize-whitespace` & `postcss-convert-values` respectively.
422
-
423
- ## Other changes
424
-
425
- * Due to the PostCSS 6 upgrade, we have been able to reduce usage of custom
426
- methods, such as node `clone` behaviour. In cases where some utility
427
- has been used by several plugins it is now a separate package, reducing
428
- cssnano's footprint.
429
- * cssnano now makes much better use of Browserslist. `postcss-colormin` &
430
- `postcss-reduce-initial` were enhanced with different behaviour depending
431
- on which browsers are passed. And now, the footprint for the `caniuse-db`
432
- dependency is much smaller thanks to `caniuse-lite` - 7 times smaller as
433
- of this writing. This makes cssnano much faster to download from npm!
434
-
435
- # 3.10.0
436
-
437
- * cssnano will no longer `console.warn` any messages when using deprecated
438
- options; these are now sent to PostCSS. You will be able to see them if you
439
- use a PostCSS runner with built-in messages support, or alternately by
440
- loading `postcss-reporter` or `postcss-browser-reporter` in your plugins list.
441
- * Prepares support for `grid` identifier reduction by adding it to the list
442
- of optimisations turned off when `options.safe` is set to `true`.
443
- * Adds support for normalizing `unicode-range` descriptors. Values will
444
- be converted when the code matches `0` & `f` in the same place on both sides
445
- of the range. So, `u+2000-2fff` can be converted to `u+2???`, but
446
- `u+2100-2fff` will be left as it is.
447
-
448
- # 3.9.1
449
-
450
- * Resolves an integration issue with `v3.9.0`, where `undefined` values
451
- would attempt to be parsed.
452
-
453
- # 3.9.0
454
-
455
- * Adds a new option to normalize wrapping quotes for strings & joining
456
- multiple-line strings into a single line. This optimisation can potentially
457
- reduce the final gzipped size of your CSS file.
458
-
459
- # 3.8.2
460
-
461
- * Resolves an issue where `display: list-item inline flow` would be normalized
462
- to `inline list-item` rather than `inline-list-item` (thanks to @mattbasta).
463
-
464
- # 3.8.1
465
-
466
- * Adds a quick start file for easy integration with Runkit. Try cssnano online
467
- at https://runkit.com/npm/cssnano.
468
-
469
- # 3.8.0
470
-
471
- * Adds support for normalizing multiple values for the `display` property. For
472
- example `block flow` can be simplified to `block`.
473
-
474
- # 3.7.7
475
-
476
- * Further improves CSS mixin handling; semicolons will no longer be stripped
477
- from *rules* as well as declarations.
478
-
479
- # 3.7.6
480
-
481
- * Resolves an issue where the semicolon was being incorrectly stripped
482
- from CSS mixins.
483
-
484
- # 3.7.5
485
-
486
- * Resolves an issue where the `safe` flag was not being persisted across
487
- multiple files (thanks to @techmatt101).
488
-
489
- # 3.7.4
490
-
491
- * Improves performance of the reducePositions transform by testing
492
- against `hasOwnProperty` instead of using an array of object keys.
493
- * Removes the redundant `indexes-of` dependency.
494
-
495
- # 3.7.3
496
-
497
- * Unpins postcss-filter-plugins from `2.0.0` as a fix has landed in the new
498
- version of uniqid.
499
-
500
- # 3.7.2
501
-
502
- * Temporarily pins postcss-filter-plugins to version `2.0.0` in order to
503
- mitigate an issue with uniqid `3.0.0`.
504
-
505
- # 3.7.1
506
-
507
- * Enabling safe mode now turns off both postcss-merge-idents &
508
- postcss-normalize-url's `stripWWW` option.
509
-
510
- # 3.7.0
511
-
512
- * Added: Reduce `background-repeat` definitions; works with both this property
513
- & the `background` shorthand, and aims to compress the extended two value
514
- syntax into the single value syntax.
515
- * Added: Reduce `initial` values for properties when the *actual* initial value
516
- is shorter; for example, `min-width: initial` becomes `min-width: 0`.
517
-
518
- # 3.6.2
519
-
520
- * Fixed an issue where cssnano would crash on `steps(1)`.
521
-
522
- # 3.6.1
523
-
524
- * Fixed an issue where cssnano would crash on `steps` functions with a
525
- single argument.
526
-
527
- # 3.6.0
528
-
529
- * Added `postcss-discard-overridden` to safely discard overridden rules with
530
- the same identifier (thanks to @Justineo).
531
- * Added: Reduce animation/transition timing functions. Detects `cubic-bezier`
532
- functions that are equivalent to the timing keywords and compresses, as well
533
- as normalizing the `steps` timing function.
534
- * Added the `perspective-origin` property to the list of supported properties
535
- transformed by the `reduce-positions` transform.
536
-
537
- # 3.5.2
538
-
539
- * Resolves an issue where the 3 or 4 value syntax for `background-position`
540
- were being incorrectly converted.
541
-
542
- # 3.5.1
543
-
544
- * Improves checking for `background-position` values in the `background`
545
- shorthand property.
546
-
547
- # 3.5.0
548
-
549
- * Adds a new optimisation path which can minimise keyword values for
550
- `background-position` and the `background` shorthand.
551
- * Tweaks to performance in the `core` module, now performs less AST passes.
552
- * Now compiled with Babel 6.
553
-
554
- # 3.4.0
555
-
556
- * Adds a new optimisation path which can minimise gradient parameters
557
- automatically.
558
-
559
- # 3.3.2
560
-
561
- * Fixes an issue where using `options.safe` threw an error when cssnano was
562
- not used as part of a PostCSS instance, but standalone (such as in modules
563
- like gulp-cssnano). cssnano now renames `safe` internally to `isSafe`.
564
-
565
- # 3.3.1
566
-
567
- * Unpins postcss-colormin from `2.1.2`, as the `2.1.3` & `2.1.4` patches had
568
- optimization regressions that are now resolved in `2.1.5`.
569
-
570
- # 3.3.0
571
-
572
- * Updated modules to use postcss-value-parser version 3 (thanks to @TrySound).
573
- * Now converts between transform functions with postcss-reduce-transforms.
574
- e.g. `translate3d(0, 0, 0)` becomes `translateZ(0)`.
575
-
576
- # 3.2.0
577
-
578
- * cssnano no longer converts `outline: none` to `outline: 0`, as there are
579
- some cases where the values are not equivalent (thanks to @TrySound).
580
- * cssnano no longer converts for example `16px` to `1pc` *by default*. Length
581
- optimisations can be turned on via `{convertValues: {length: true}}`.
582
- * Improved minimization of css functions (thanks to @TrySound).
583
-
584
- # 3.1.0
585
-
586
- * This release swaps postcss-single-charset for postcss-normalize-charset,
587
- which can detect encoding to determine whether a charset is necessary.
588
- Optionally, you can set the `add` option to `true` to prepend a UTF-8
589
- charset to the output automatically (thanks to @TrySound).
590
- * A `safe` option was added, which disables more aggressive optimisations, as
591
- a convenient preset configuration (thanks to @TrySound).
592
- * Added an option to convert from `deg` to `turn` & vice versa, & improved
593
- minification performance in functions (thanks to @TrySound).
594
-
595
- # 3.0.3
596
-
597
- * Fixes an issue where cssnano was removing spaces around forward slashes in
598
- string literals (thanks to @TrySound).
599
-
600
- # 3.0.2
601
-
602
- * Fixes an issue where cssnano was removing spaces around forward slashes in
603
- calc functions.
604
-
605
- # 3.0.1
606
-
607
- * Replaced css-list & balanced-match with postcss-value-parser, reducing the
608
- module's overall size (thanks to @TrySound).
609
-
610
- # 3.0.0
611
-
612
- * All cssnano plugins and cssnano itself have migrated to PostCSS 5.x. Please
613
- make sure that when using the 3.x releases that you use a 5.x compatible
614
- PostCSS runner.
615
- * cssnano will now compress inline SVG through SVGO. Because of this change,
616
- interfacing with cssnano must now be done through an asynchronous API. The
617
- main `process` method has the same signature as a PostCSS processor instance.
618
- * The old options such as `merge` & `fonts` that were deprecated in
619
- release `2.5.0` were removed. The new architecture allows you to specify any
620
- module name to disable it.
621
- * postcss-minify-selectors' at-rule compression was extracted out into
622
- postcss-minify-params (thanks to @TrySound).
623
- * Overall performance of the module has improved dramatically, thanks to work
624
- by @TrySound and input from the community.
625
- * Improved selector merging/deduplication in certain use cases.
626
- * cssnano no longer compresses hex colours in filter properties, to better
627
- support old versions of Internet Explorer (thanks to @faddee).
628
- * cssnano will not merge properties together that have an `inherit` keyword.
629
- * postcss-minify-font-weight & postcss-font-family were consolidated into
630
- postcss-minify-font-values. Using the old options will print deprecation
631
- warnings (thanks to @TrySound).
632
- * The cssnano CLI was extracted into a separate module, so that dependent
633
- modules such as gulp-cssnano don't download unnecessary extras.
634
-
635
- # 2.6.1
636
-
637
- * Improved performance of the core module `functionOptimiser`.
638
-
639
- # 2.6.0
640
-
641
- * Adds a new optimisation which re-orders properties that accept values in
642
- an arbitrary order. This can lead to improved merging behaviour in certain
643
- cases.
644
-
645
- # 2.5.0
646
-
647
- * Adds support for disabling modules of the user's choosing, with new option
648
- names. The old options (such as `merge` & `fonts`) will be removed in `3.0`.
649
-
650
- # 2.4.0
651
-
652
- * postcss-minify-selectors was extended to add support for conversion of
653
- `::before` to `:before`; this release removes the dedicated
654
- postcss-pseudoelements module.
655
-
656
- # 2.3.0
657
-
658
- * Consolidated postcss-minify-trbl & two integrated modules into
659
- postcss-merge-longhand.
660
-
661
- # 2.2.0
662
-
663
- * Replaced integrated plugin filter with postcss-filter-plugins.
664
- * Improved rule merging logic.
665
- * Improved performance across the board by reducing AST iterations where it
666
- was possible to do so.
667
- * cssnano will now perform better whitespace compression when used with other
668
- PostCSS plugins.
669
-
670
- # 2.1.1
671
-
672
- * Fixes an issue where options were not passed to normalize-url.
673
-
674
- # 2.1.0
675
-
676
- * Allow `postcss-font-family` to be disabled.
677
-
678
- # 2.0.3
679
-
680
- * cssnano can now be consumed with the parentheses-less method in PostCSS; e.g.
681
- `postcss([ cssnano ])`.
682
- * Fixes an issue where 'Din' was being picked up by the logic as a numeric
683
- value, causing the full font name to be incorrectly rearranged.
684
-
685
- # 2.0.2
686
-
687
- * Extract trbl value reducing into a separate module.
688
- * Refactor core longhand optimiser to not rely on trbl cache.
689
- * Adds support for `ch` units; previously they were removed.
690
- * Fixes parsing of some selector hacks.
691
- * Fixes an issue where embedded base 64 data was being converted as if it were
692
- a URL.
693
-
694
- # 2.0.1
695
-
696
- * Add `postcss-plugin` keyword to package.json.
697
- * Wraps all core processors with the PostCSS 4.1 plugin API.
698
-
699
- # 2.0.0
700
-
701
- * Adds removal of outdated vendor prefixes based on browser support.
702
- * Addresses an issue where relative path separators were converted to
703
- backslashes on Windows.
704
- * cssnano will now detect previous plugins and silently disable them when the
705
- functionality overlaps. This is to enable faster interoperation with cssnext.
706
- * cssnano now exports as a PostCSS plugin. The simple interface is exposed
707
- at `cssnano.process(css, opts)` instead of `cssnano(css, opts)`.
708
- * Improved URL detection when using two or more in the same declaration.
709
- * node 0.10 is no longer officially supported.
710
-
711
- # 1.4.3
712
-
713
- * Fixes incorrect minification of `background:none` to `background:0 0`.
714
-
715
- # 1.4.2
716
-
717
- * Fixes an issue with nested URLs inside `url()` functions.
718
-
719
- # 1.4.1
720
-
721
- * Addresses an issue where whitespace removal after a CSS function would cause
722
- rendering issues in Internet Explorer.
723
-
724
- # 1.4.0
725
-
726
- * Adds support for removal of unused `@keyframes` and `@counter-style` at-rules.
727
- * comments: adds support for user-directed removal of comments, with the
728
- `remove` option (thanks to @dmitrykiselyov).
729
- * comments: `removeAllButFirst` now operates on each CSS tree, rather than the
730
- first one passed to cssnano.
731
-
732
- # 1.3.3
733
-
734
- * Fixes incorrect minification of `border:none` to `border:0 0`.
735
-
736
- # 1.3.2
737
-
738
- * Improved selector minifying logic, leading to better compression of attribute
739
- selectors.
740
- * Improved comment discarding logic.
741
-
742
- # 1.3.1
743
-
744
- * Fixes crash on undefined `decl.before` from prior AST.
745
-
746
- # 1.3.0
747
-
748
- * Added support for bundling cssnano using webpack (thanks to @MoOx).
749
-
750
- # 1.2.1
751
-
752
- * Fixed a bug where a CSS function keyword inside its value would throw
753
- an error.
754
-
755
- # 1.2.0
756
-
757
- * Better support for merging properties without the existance of a shorthand
758
- override.
759
- * Can now 'merge forward' adjacent rules as well as the previous 'merge behind'
760
- behaviour, leading to better compression.
761
- * Selector re-ordering now happens last in the chain of plugins, to help clean
762
- up merged selectors.
763
-
764
- # 1.1.0
765
-
766
- * Now can merge identifiers such as `@keyframes` and `@counter-style` if they
767
- have duplicated properties but are named differently.
768
- * Fixes an issue where duplicated keyframes with the same name would cause
769
- an infinite loop.
770
-
771
- # 1.0.2
772
-
773
- * Improve module loading logic (thanks to @tunnckoCore).
774
- * Improve minification of numeric values, with better support for `rem`,
775
- trailing zeroes and slash/comma separated values
776
- (thanks to @TrySound & @tunnckoCore).
777
- * Fixed an issue where `-webkit-tap-highlight-color` values were being
778
- incorrectly transformed to `transparent`. This is not supported in Safari.
779
- * Added support for viewport units (thanks to @TrySound).
780
- * Add MIT license file.
781
-
782
- # 1.0.1
783
-
784
- * Add repository/author links to package.json.
785
-
786
- # 1.0.0
787
-
788
- * Initial release.