@atlaspack/optimizer-cssnano 2.14.18 → 2.14.20
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/CHANGELOG.md +16 -0
- package/lib/CSSNanoOptimizer.js +3 -1
- package/package.json +2 -2
- package/src/CSSNanoOptimizer.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaspack/optimizer-cssnano
|
|
2
2
|
|
|
3
|
+
## 2.14.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
|
|
10
|
+
- @atlaspack/plugin@2.14.20
|
|
11
|
+
|
|
12
|
+
## 2.14.19
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies []:
|
|
17
|
+
- @atlaspack/plugin@2.14.19
|
|
18
|
+
|
|
3
19
|
## 2.14.18
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/lib/CSSNanoOptimizer.js
CHANGED
|
@@ -62,7 +62,9 @@ var _default = exports.default = new (_plugin().Optimizer)({
|
|
|
62
62
|
if (typeof prevContents !== 'string') {
|
|
63
63
|
throw new Error('CSSNanoOptimizer: Only string contents are currently supported');
|
|
64
64
|
}
|
|
65
|
-
const result = await (0, _postcss().default)([
|
|
65
|
+
const result = await (0, _postcss().default)([
|
|
66
|
+
// $FlowFixMe
|
|
67
|
+
(0, _cssnano().default)(config ?? {})]).process(prevContents, {
|
|
66
68
|
// Suppress postcss's warning about a missing `from` property. In this
|
|
67
69
|
// case, the input map contains all of the sources.
|
|
68
70
|
from: undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/optimizer-cssnano",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.20",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"node": ">= 16.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@atlaspack/plugin": "2.14.
|
|
18
|
+
"@atlaspack/plugin": "2.14.20",
|
|
19
19
|
"@parcel/source-map": "^2.1.1",
|
|
20
20
|
"cssnano": "^5.0.15",
|
|
21
21
|
"postcss": "^8.4.5"
|
package/src/CSSNanoOptimizer.js
CHANGED
|
@@ -44,6 +44,7 @@ export default (new Optimizer({
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
const result = await postcss([
|
|
47
|
+
// $FlowFixMe
|
|
47
48
|
cssnano((config ?? {}: CSSNanoOptions)),
|
|
48
49
|
]).process(prevContents, {
|
|
49
50
|
// Suppress postcss's warning about a missing `from` property. In this
|
|
@@ -75,4 +76,4 @@ export default (new Optimizer({
|
|
|
75
76
|
map,
|
|
76
77
|
};
|
|
77
78
|
},
|
|
78
|
-
}): Optimizer);
|
|
79
|
+
}): Optimizer<mixed, mixed>);
|