cssnano 5.0.2 → 5.0.6

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