-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpostcss.config.js
34 lines (33 loc) · 1021 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
/* eslint-disable import/no-extraneous-dependencies */
const unprefix = require('postcss-unprefix');
const sortingOption = require('./sorting.config');
module.exports = ({ file }) => ({
parser: file.extname === '.sss' ? 'sugarss' : false,
plugins: {
'postcss-at-rules-variables': {},
'postcss-import': { root: file.dirname },
'postcss-easy-import': {},
'postcss-url': {},
'postcss-mixins': {},
'postcss-for': {},
'postcss-define-function': {},
'postcss-calc': {},
'postcss-normalize': { forceImport: true },
'postcss-preset-env': {
autoprefixer: {
grid: true,
},
features: {
'nesting-rules': true,
'color-mod-function': { unresolved: 'warn' },
'custom-properties': { preserve: false },
'system-ui-font-family': { family: 'system-ui, Helvetica Neue' },
'custom-media-queries': true,
},
insertBefore: {
'all-property': unprefix,
},
},
'postcss-sorting': sortingOption,
},
});