@atlaspack/optimizer-css 2.12.1-dev.3367 → 2.12.1-dev.3398
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/lib/CSSOptimizer.js +2 -2
- package/package.json +6 -6
- package/src/CSSOptimizer.js +2 -2
package/lib/CSSOptimizer.js
CHANGED
|
@@ -79,7 +79,7 @@ var _default = exports.default = new (_plugin().Optimizer)({
|
|
|
79
79
|
let message;
|
|
80
80
|
if (filename === 'package.json') {
|
|
81
81
|
message = (0, _diagnostic().md)`
|
|
82
|
-
Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cssnano" key was found in **package.json**. Either remove this configuration, or configure
|
|
82
|
+
Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cssnano" key was found in **package.json**. Either remove this configuration, or configure Parcel to use @atlaspack/optimizer-cssnano instead.
|
|
83
83
|
`;
|
|
84
84
|
let contents = await options.inputFS.readFile(configFile.filePath, 'utf8');
|
|
85
85
|
codeHighlights = (0, _diagnostic().generateJSONCodeHighlights)(contents, [{
|
|
@@ -87,7 +87,7 @@ Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cs
|
|
|
87
87
|
type: 'key'
|
|
88
88
|
}]);
|
|
89
89
|
} else {
|
|
90
|
-
message = (0, _diagnostic().md)`
|
|
90
|
+
message = (0, _diagnostic().md)`Parcel\'s default CSS minifer changed from cssnano to lightningcss, but a __${filename}__ config file was found. Either remove this config file, or configure Parcel to use @atlaspack/optimizer-cssnano instead.`;
|
|
91
91
|
codeHighlights = [{
|
|
92
92
|
start: {
|
|
93
93
|
line: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/optimizer-css",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3398+81c73b3cd",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"source": "src/CSSOptimizer.js",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">= 16.0.0",
|
|
16
|
-
"
|
|
16
|
+
"parcel": "^2.12.1-dev.3398+81c73b3cd"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.12.1-dev.
|
|
20
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
21
|
-
"@atlaspack/utils": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/diagnostic": "2.12.1-dev.3398+81c73b3cd",
|
|
20
|
+
"@atlaspack/plugin": "2.12.1-dev.3398+81c73b3cd",
|
|
21
|
+
"@atlaspack/utils": "2.12.1-dev.3398+81c73b3cd",
|
|
22
22
|
"@parcel/source-map": "^2.1.1",
|
|
23
23
|
"browserslist": "^4.6.6",
|
|
24
24
|
"lightningcss": "^1.22.1",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"browser": {
|
|
31
31
|
"lightningcss": "lightningcss-wasm"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "81c73b3cdf93adf8b0013be9fed5422579bd5910"
|
|
34
34
|
}
|
package/src/CSSOptimizer.js
CHANGED
|
@@ -37,7 +37,7 @@ export default (new Optimizer({
|
|
|
37
37
|
let message;
|
|
38
38
|
if (filename === 'package.json') {
|
|
39
39
|
message = md`
|
|
40
|
-
Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cssnano" key was found in **package.json**. Either remove this configuration, or configure
|
|
40
|
+
Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cssnano" key was found in **package.json**. Either remove this configuration, or configure Parcel to use @atlaspack/optimizer-cssnano instead.
|
|
41
41
|
`;
|
|
42
42
|
let contents = await options.inputFS.readFile(
|
|
43
43
|
configFile.filePath,
|
|
@@ -47,7 +47,7 @@ Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cs
|
|
|
47
47
|
{key: '/cssnano', type: 'key'},
|
|
48
48
|
]);
|
|
49
49
|
} else {
|
|
50
|
-
message = md`
|
|
50
|
+
message = md`Parcel\'s default CSS minifer changed from cssnano to lightningcss, but a __${filename}__ config file was found. Either remove this config file, or configure Parcel to use @atlaspack/optimizer-cssnano instead.`;
|
|
51
51
|
codeHighlights = [
|
|
52
52
|
{
|
|
53
53
|
start: {line: 1, column: 1},
|