@itcase/config 1.0.35 → 1.0.36
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/package.json +4 -3
- package/postcss/index.js +7 -0
- package/postcss/require.cjs +8 -4
- package/postcss/require.js +4 -0
- package/postcss/requirePackage.cjs +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Config",
|
|
6
6
|
"engines": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"postcss-cli": "^11.0.1",
|
|
41
41
|
"postcss-color-hsla-fallback": "^1.0.0",
|
|
42
42
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
43
|
+
"postcss-convert-unit": "^0.1.3",
|
|
43
44
|
"postcss-dark-theme-class": "^1.3.0",
|
|
44
45
|
"postcss-discard-duplicates": "^7.0.1",
|
|
45
46
|
"postcss-each": "^1.1.0",
|
|
@@ -59,9 +60,9 @@
|
|
|
59
60
|
"postcss-prepend-imports": "^1.0.1",
|
|
60
61
|
"postcss-preset-env": "^10.1.5",
|
|
61
62
|
"postcss-pxtorem": "^6.1.0",
|
|
62
|
-
"postcss-convert-unit": "^0.1.3",
|
|
63
63
|
"postcss-sort-media-queries": "^5.2.0",
|
|
64
|
-
"postcss-url": "^10.1.3"
|
|
64
|
+
"postcss-url": "^10.1.3",
|
|
65
|
+
"postcss-urlrewrite": "^0.3.0"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"@commitlint/cli": "^19.8.0",
|
package/postcss/index.js
CHANGED
package/postcss/require.cjs
CHANGED
|
@@ -14,15 +14,15 @@ module.exports = {
|
|
|
14
14
|
require('postcss-convert-unit')({
|
|
15
15
|
convertConfig: [
|
|
16
16
|
{
|
|
17
|
-
declMatcher: {
|
|
18
|
-
sourceUnit: 'm',
|
|
19
|
-
targetUnit: 'px',
|
|
20
|
-
},
|
|
21
17
|
declConvertRules: [
|
|
22
18
|
{
|
|
23
19
|
value: (value) => value * 8,
|
|
24
20
|
},
|
|
25
21
|
],
|
|
22
|
+
declMatcher: {
|
|
23
|
+
sourceUnit: 'm',
|
|
24
|
+
targetUnit: 'px',
|
|
25
|
+
},
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
28
|
}),
|
|
@@ -35,6 +35,10 @@ module.exports = {
|
|
|
35
35
|
},
|
|
36
36
|
stage: 2,
|
|
37
37
|
}),
|
|
38
|
+
require('postcss-urlrewrite')({
|
|
39
|
+
properties: ['src'],
|
|
40
|
+
rules: [{ from: '@itcase', to: './../../node_modules/@itcase/' }],
|
|
41
|
+
}),
|
|
38
42
|
require('postcss-nested-ancestors'),
|
|
39
43
|
require('postcss-nested'),
|
|
40
44
|
require('postcss-hexrgba'),
|
package/postcss/require.js
CHANGED
|
@@ -36,6 +36,10 @@ module.exports = {
|
|
|
36
36
|
},
|
|
37
37
|
stage: 2,
|
|
38
38
|
}),
|
|
39
|
+
require('postcss-urlrewrite')({
|
|
40
|
+
properties: ['src'],
|
|
41
|
+
rules: [{ from: '@itcase', to: './../../node_modules/@itcase/' }],
|
|
42
|
+
}),
|
|
39
43
|
require('postcss-nested-ancestors'),
|
|
40
44
|
require('postcss-nested'),
|
|
41
45
|
require('postcss-hexrgba'),
|
|
@@ -22,15 +22,15 @@ module.exports = {
|
|
|
22
22
|
require('postcss-convert-unit')({
|
|
23
23
|
convertConfig: [
|
|
24
24
|
{
|
|
25
|
-
declMatcher: {
|
|
26
|
-
sourceUnit: 'm',
|
|
27
|
-
targetUnit: 'px',
|
|
28
|
-
},
|
|
29
25
|
declConvertRules: [
|
|
30
26
|
{
|
|
31
27
|
value: (value) => value * 8,
|
|
32
28
|
},
|
|
33
29
|
],
|
|
30
|
+
declMatcher: {
|
|
31
|
+
sourceUnit: 'm',
|
|
32
|
+
targetUnit: 'px',
|
|
33
|
+
},
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
36
|
}),
|
|
@@ -43,6 +43,10 @@ module.exports = {
|
|
|
43
43
|
},
|
|
44
44
|
stage: 2,
|
|
45
45
|
}),
|
|
46
|
+
require('postcss-urlrewrite')({
|
|
47
|
+
properties: ['src'],
|
|
48
|
+
rules: [{ from: '@itcase', to: './../../node_modules/@itcase/' }],
|
|
49
|
+
}),
|
|
46
50
|
require('postcss-nested-ancestors'),
|
|
47
51
|
require('postcss-nested'),
|
|
48
52
|
require('postcss-hexrgba'),
|