-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostcss.config.js
27 lines (26 loc) · 912 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
const cssImports = [
'./styles/variables.css',
'./styles/breakpoints.css',
'./styles/helpers.css',
]
// Use same order as in:
// https://github.com/csstools/postcss-preset-env/blob/master/src/lib/ids-by-execution-order.js
module.exports = {
plugins: {
'postcss-mixins': {
mixinsFiles: './styles/mixins.css',
},
'postcss-nested': {}, // Nesting that look like SCSS
'postcss-preset-env': {
stage: 3, // https://preset-env.cssdb.org/features
importFrom: cssImports, // https://github.com/csstools/postcss-preset-env#importfrom
preserve: false, // https://github.com/csstools/postcss-preset-env#preserve
features: {
'nesting-rules': false, // Disable 'postcss-nesting'
'custom-media-queries': true,
'custom-properties': true,
'media-query-ranges': true,
},
},
},
}