-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpostcss.config.js
37 lines (37 loc) · 940 Bytes
/
postcss.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
parser: require("postcss-scss"),
plugins: [
require("autoprefixer"),
require("postcss-import"),
require("postcss-nested"),
require("postcss-advanced-variables"),
require("postcss-sorting")({
/**
* Maybe you don't need it.
* Reference: https://github.com/hudochenkov/postcss-sorting/blob/master/lib/order/README.md
*/
order: [
"custom-properties",
"dollar-variables",
"declarations",
"at-rules",
"rules",
],
"properties-order": "alphabetical",
"unspecified-properties-position": "bottom",
}),
require("postcss-pxtorem")({
rootValue: 75,
unitPrecision: 5,
propList: ["*"],
// selectorBlackList: [/^p/],
selectorBlackList: [],
replace: true,
mediaQuery: false,
minPixelValue: 6,
}),
require("cssnano")({
preset: "default",
}),
],
};