You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[What's new in version 4.1](#whats-new-in-version-41)
25
-
*[What's new in version 4.2](#whats-new-in-version-42)
26
23
*[What's new in version 4.3](#whats-new-in-version-43)
24
+
*[What's new in version 4.2](#whats-new-in-version-42)
25
+
*[What's new in version 4.1](#whats-new-in-version-41)
26
+
*[What's new in version 4.0](#whats-new-in-version-40)
27
27
*[CLI options](#cli-options)
28
28
*[Compatibility modes](#compatibility-modes)
29
29
*[Formatting options](#formatting-options)
@@ -71,23 +71,17 @@ clean-css-cli 5.0 introduces the following changes / features:
71
71
*`--skip-rebase` option has been removed as rebasing URLs is disabled by default now
72
72
*`--with-rebase` option is added if you really want URLs rebasing
73
73
74
-
## Important: 4.0 breaking changes
74
+
## What's new in version 4.3
75
75
76
-
clean-css-cli 4.0 introduces some breaking changes:
76
+
clean-css-cli 4.3 introduces the following changes / features:
77
77
78
-
* API and CLI interfaces are split, so CLI has been moved to this repository while API stays at [clean-css](https://github.com/jakubpawlowicz/clean-css);
79
-
*`--root` and `--relativeTo` options are replaced by a single option taken from `--output` path - this means that rebasing URLs and import inlining is much simpler but may not be (YMMV) as powerful as in 3.x;
80
-
*`--rounding-precision` is disabled by default;
81
-
*`--rounding-precision` applies to **all** units now, not only `px` as in 3.x;
82
-
*`--skip-import` and `--skip-import-from` are merged into `--inline` option which defaults to `local`. Remote `@import` rules are **NOT** inlined by default anymore;
83
-
* renames `--timeout` option to `--inline-timeout`;
84
-
* remote resources without a protocol, e.g. `//fonts.googleapis.com/css?family=Domine:700`, are not inlined anymore;
85
-
* changes default Internet Explorer compatibility from 9+ to 10+, to revert the old default use `--compatibility ie9` option;
86
-
* moves `--rounding-precision`, `--s0`, and `--s1` options to level 1 optimization options, see examples;
87
-
* moves `--skip-media-merging`, `--skip-restructuring`, `--semantic-merging`, and `--skip-shorthand-compacting` to level 2 optimizations options, see examples below;
88
-
* level 1 optimizations are the new default, up to 3.x it was level 2;
89
-
*`--keep-breaks` option is replaced with `--format keep-breaks` to ease transition;
90
-
*`--skip-aggressive-merging` option is removed as aggressive merging is replaced by smarter override merging.
78
+
*`--input-source-map` option which accepts a path to input source map file.
79
+
80
+
## What's new in version 4.2
81
+
82
+
clean-css-cli 4.2 introduces the following changes / features:
83
+
84
+
*[clean-css 4.2](https://github.com/jakubpawlowicz/clean-css#whats-new-in-version-42) as a dependency;
91
85
92
86
## What's new in version 4.1
93
87
@@ -100,17 +94,23 @@ clean-css-cli 4.1 introduces the following changes / features:
100
94
* extracts CLI into an importable module, so it can be reused and enhanced if needed;
101
95
* adds `beforeMinify` callback as a second argument to CLI module, see [example use case](#as-a-module).
102
96
103
-
## What's new in version 4.2
104
-
105
-
clean-css-cli 4.2 introduces the following changes / features:
106
-
107
-
*[clean-css 4.2](https://github.com/jakubpawlowicz/clean-css#whats-new-in-version-42) as a dependency;
97
+
## What's new in version 4.0
108
98
109
-
## What's new in version 4.3
110
-
111
-
clean-css-cli 4.3 introduces the following changes / features:
99
+
clean-css-cli 4.0 introduces some breaking changes:
112
100
113
-
*`--input-source-map` option which accepts a path to input source map file.
101
+
* API and CLI interfaces are split, so CLI has been moved to this repository while API stays at [clean-css](https://github.com/jakubpawlowicz/clean-css);
102
+
*`--root` and `--relativeTo` options are replaced by a single option taken from `--output` path - this means that rebasing URLs and import inlining is much simpler but may not be (YMMV) as powerful as in 3.x;
103
+
*`--rounding-precision` is disabled by default;
104
+
*`--rounding-precision` applies to **all** units now, not only `px` as in 3.x;
105
+
*`--skip-import` and `--skip-import-from` are merged into `--inline` option which defaults to `local`. Remote `@import` rules are **NOT** inlined by default anymore;
106
+
* renames `--timeout` option to `--inline-timeout`;
107
+
* remote resources without a protocol, e.g. `//fonts.googleapis.com/css?family=Domine:700`, are not inlined anymore;
108
+
* changes default Internet Explorer compatibility from 9+ to 10+, to revert the old default use `--compatibility ie9` option;
109
+
* moves `--rounding-precision`, `--s0`, and `--s1` options to level 1 optimization options, see examples;
110
+
* moves `--skip-media-merging`, `--skip-restructuring`, `--semantic-merging`, and `--skip-shorthand-compacting` to level 2 optimizations options, see examples below;
111
+
* level 1 optimizations are the new default, up to 3.x it was level 2;
112
+
*`--keep-breaks` option is replaced with `--format keep-breaks` to ease transition;
113
+
*`--skip-aggressive-merging` option is removed as aggressive merging is replaced by smarter override merging.
0 commit comments