@davidwells/config-postcss 0.0.19 → 0.1.0
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 -4
- package/src/getPostCSSPlugins.js +13 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davidwells/config-postcss",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Reusable postcss config",
|
|
5
5
|
"author": "DavidWells",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"src"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@davidwells/postcss-math": "^1.0.
|
|
24
|
+
"@davidwells/postcss-math": "^1.0.3",
|
|
25
25
|
"autoprefixer": "^9.8.6",
|
|
26
26
|
"color": "^3.1.3",
|
|
27
27
|
"cssnano": "^4.1.10",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"postcss-nested": "4.2.3",
|
|
50
50
|
"postcss-nested-ancestors": "^2.0.0",
|
|
51
51
|
"postcss-nesting": "^7.0.1",
|
|
52
|
-
"postcss-preset-env": "^
|
|
52
|
+
"postcss-preset-env": "^7.4.1",
|
|
53
53
|
"postcss-reporter": "^7.0.2",
|
|
54
54
|
"postcss-selector-matches": "^4.0.0",
|
|
55
55
|
"postcss-selector-not": "^4.0.0",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"validate-color": "^2.1.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"uvu": "^0.5.
|
|
62
|
+
"uvu": "^0.5.3"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/getPostCSSPlugins.js
CHANGED
|
@@ -18,16 +18,7 @@ module.exports = function getPostCSSPlugins({ variables, mixins, functions, env
|
|
|
18
18
|
// skipDuplicates: true,
|
|
19
19
|
// addModulesDirectories: []
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
...(!mixins)
|
|
23
|
-
? {}
|
|
24
|
-
: {
|
|
25
|
-
'postcss-mixins': {
|
|
26
|
-
mixins: mixins,
|
|
27
|
-
// mixinsFiles: ['src/mixins/*.js', 'node_modules/xyz/*/src/mixins/*.js']
|
|
28
|
-
// mixinsDir: './src/mixins',
|
|
29
|
-
}
|
|
30
|
-
},
|
|
21
|
+
|
|
31
22
|
/* https://github.com/postcss/postcss-simple-vars */
|
|
32
23
|
'postcss-simple-vars': {
|
|
33
24
|
variables: () => variables,
|
|
@@ -38,6 +29,18 @@ module.exports = function getPostCSSPlugins({ variables, mixins, functions, env
|
|
|
38
29
|
}
|
|
39
30
|
},
|
|
40
31
|
|
|
32
|
+
// Must be before postcss-nested & (postcss-simple-vars This didnt work with vars in mixins)
|
|
33
|
+
/* https://github.com/postcss/postcss-mixins - Create custom CSS or JS mixins. */
|
|
34
|
+
...(!mixins)
|
|
35
|
+
? {}
|
|
36
|
+
: {
|
|
37
|
+
'postcss-mixins': {
|
|
38
|
+
mixins: mixins,
|
|
39
|
+
// mixinsFiles: ['src/mixins/*.js', 'node_modules/xyz/*/src/mixins/*.js']
|
|
40
|
+
// mixinsDir: './src/mixins',
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
41
44
|
/* https://github.com/andyjansson/postcss-functions
|
|
42
45
|
Use JS functions in CSS properties. Alt https://github.com/gorriecoe/postcss-functions-lite */
|
|
43
46
|
'postcss-functions': {
|