-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
35 lines (35 loc) · 1.12 KB
/
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
module.exports = (config) => [
// require('postcss-extend')(),
require("stylelint")(),
require("postcss-cssnext")({
browsers: "last 5 versions",
features: {
customProperties: {
variables: {
maxWidth: "60rem",
// colorPrimaryDark: "#107491",
colorPrimary: "#007acc",
colorPrimaryDark: "#cc1616",
// colorPrimary: "#ff3b0a",
colorSecondaryDark: "#22846C",
colorSecondary: "#46BE77",
colorNeutralDark: "#111",
colorNeutral: "#8C8D91",
colorNeutralLight: "#FBFCFC",
colorText: "#555",
navHeight: "50px",
},
},
customMedia: {
extensions: {
'--mobile': '(max-width: 767px)'
}
}
},
}),
require('cssnano')({autoprefixer: false, zindex: false}),
require("postcss-reporter")({ clearMessages: true, plugins: ['!postcss-discard-empty'] }),
...!config.production ? [
require("postcss-browser-reporter")({ clearMessages: true, plugins: ['!postcss-discard-empty'] }),
] : [],
]