-
Notifications
You must be signed in to change notification settings - Fork 6
/
postcss.config.js
36 lines (36 loc) · 1.09 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
36
const postcssPresetEnv = require("postcss-preset-env")
const postcssImport = require("postcss-import")
const cssnano = require("cssnano")
const combineSelectors = require("postcss-combine-duplicated-selectors")
const postcssJitProps = require("postcss-jit-props")
const OpenProps = require("open-props")
module.exports = {
plugins: [
// postcssJitProps({
// files: ["./node_modules/open-props/open-props.min.css", "./node_modules/open-props/media.min.css"],
// }),
postcssImport(),
postcssPresetEnv({
stage: 0,
autoprefixer: true,
features: {
"logical-properties-and-values": false,
"prefers-color-scheme-query": false,
"gap-properties": false,
"custom-properties": false,
"place-properties": false,
"not-pseudo-class": false,
"focus-visible-pseudo-class": false,
"focus-within-pseudo-class": false,
"color-functional-notation": false,
"custom-media-queries": {
preserve: false,
},
},
}),
combineSelectors(),
cssnano({
preset: "default",
}),
],
}