@itcase/config 1.0.8 → 1.0.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/config",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "author": "ITCase",
5
5
  "description": "Config",
6
6
  "engines": {
@@ -42,6 +42,7 @@
42
42
  "postcss-aspect-ratio-polyfill": "^2.0.0",
43
43
  "postcss-clamp": "^4.1.0",
44
44
  "postcss-cli": "^11.0.0",
45
+ "postcss-color-hsla-fallback": "^1.0.0",
45
46
  "postcss-combine-duplicated-selectors": "^10.0.3",
46
47
  "postcss-dark-theme-class": "^1.3.0",
47
48
  "postcss-discard-duplicates": "^7.0.1",
@@ -53,6 +54,7 @@
53
54
  "postcss-import": "^16.1.0",
54
55
  "postcss-import-ext-glob": "^2.1.1",
55
56
  "postcss-loader": "^8.1.1",
57
+ "postcss-merge-at-rules": "^1.2.0",
56
58
  "postcss-mixins": "^11.0.3",
57
59
  "postcss-mq-extract": "^1.0.0",
58
60
  "postcss-nested": "^7.0.2",
package/postcss/index.js CHANGED
@@ -66,6 +66,7 @@ export default {
66
66
  rootValue: 16,
67
67
  },
68
68
  ],
69
+ 'postcss-merge-at-rules',
69
70
  [
70
71
  'postcss-unit',
71
72
  {
@@ -0,0 +1,79 @@
1
+ module.exports = {
2
+ plugins: [
3
+ require('postcss-normalize'),
4
+ require('postcss-prepend-imports')({
5
+ path: 'static/css/',
6
+ addModulesDirectories: ['node_modules'],
7
+ files: ['import.css'],
8
+ }),
9
+ require('postcss-import-ext-glob'),
10
+ require('postcss-import'),
11
+ require('postcss-mixins'),
12
+ require('postcss-flexbugs-fixes'),
13
+ require('postcss-preset-env')({
14
+ stage: 2,
15
+ features: {
16
+ 'custom-properties': {
17
+ preserve: false,
18
+ },
19
+ 'custom-media-queries': {
20
+ preserve: false,
21
+ },
22
+ 'nesting-rules': false,
23
+ },
24
+ }),
25
+ require('postcss-nested-ancestors'),
26
+ require('postcss-nested'),
27
+ require('postcss-hexrgba'),
28
+ require('postcss-merge-rules'),
29
+ require('postcss-pxtorem')({
30
+ rootValue: 16,
31
+ minPixelValue: 0,
32
+ propList: [
33
+ 'font',
34
+ 'font-size',
35
+ 'font-range',
36
+ 'line-height',
37
+ 'letter-spacing',
38
+ 'line-height-range',
39
+ 'letter-spacing-range',
40
+ ],
41
+ }),
42
+ require('postcss-unique-selectors'),
43
+ require('postcss-discard-empty'),
44
+ require('postcss-discard-comments'),
45
+ require('postcss-discard-duplicates'),
46
+ require('postcss-merge-at-rules')(),
47
+ require('postcss-sort-media-queries')({
48
+ sort: 'mobile-first',
49
+ }),
50
+ require('postcss-unitlist')({
51
+ media: true,
52
+ replace: true,
53
+ propList: ['*'],
54
+ unitList: [
55
+ {
56
+ math: '$word * 16',
57
+ word: 'em',
58
+ unit: 'px',
59
+ },
60
+ ],
61
+ }),
62
+ require('postcss-url')({
63
+ url: 'inline',
64
+ maxSize: 512,
65
+ }),
66
+ require('postcss-unitlist')({
67
+ media: true,
68
+ replace: true,
69
+ propList: ['*'],
70
+ unitList: [
71
+ {
72
+ math: '$word * 16',
73
+ word: 'em',
74
+ unit: 'px',
75
+ },
76
+ ],
77
+ }),
78
+ ],
79
+ }
@@ -35,7 +35,7 @@ module.exports = {
35
35
  propList: ['font', 'font-size', 'line-height', 'letter-spacing'],
36
36
  rootValue: 16,
37
37
  }),
38
-
38
+ require('postcss-merge-at-rules')(),
39
39
  require('postcss-unit')({
40
40
  convert: (number) => number * 8,
41
41
  from: 'm',