Skip to content

Commit f8fa6a7

Browse files
committed
Update postcss config
1 parent c406418 commit f8fa6a7

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

config/postcss.config.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
module.exports = (api) => {
22
return {
33
plugins: [
4-
require('postcss-import')(),
5-
require('postcss-url')(),
6-
require('postcss-preset-env')({
7-
stage: 2,
8-
features: {
9-
'custom-properties': {
10-
warnings: true,
11-
preserve: true
4+
'postcss-import',
5+
'postcss-url',
6+
'postcss-nested',
7+
[
8+
'postcss-preset-env',
9+
{
10+
stage: 2,
11+
features: {
12+
'nesting-rules': false
1213
}
1314
}
14-
}),
15-
require('postcss-nested')(),
16-
require('postcss-custom-media')({
17-
preserve: false
18-
})
15+
],
16+
[
17+
'postcss-custom-media',
18+
{
19+
preserve: false
20+
}
21+
]
1922
]
2023
}
2124
}

0 commit comments

Comments
 (0)