-
Notifications
You must be signed in to change notification settings - Fork 1
/
postcss.config.js
68 lines (61 loc) · 1.91 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
plugins: {
/*
* Consumes files by @import rule
* https://github.com/postcss/postcss-import
*/
'postcss-import': {},
/**
* Enable custom property sets references (@apply rule and custom property sets)
* https://www.npmjs.com/package/postcss-apply
*/
'postcss-apply': {},
/*
* Convert modern CSS into something most browsers can understand
* https://github.com/csstools/postcss-preset-env
*/
'postcss-preset-env': {
/*
* Specifies sources where variables like Custom Media, Custom Properties,
* Custom Selectors, and Environment Variables can be imported from
*
* https://github.com/csstools/postcss-preset-env#importfrom
*/
importFrom: 'src/styles/variables.pcss',
/*
* Polyfill CSS features
* https://github.com/csstools/postcss-preset-env#stage
*
* List of features with levels: https://cssdb.org/
*/
stage: 0,
/*
* Enable or disable specific polyfills
* https://github.com/csstools/postcss-preset-env#features
* List of available plugins
* https://github.com/csstools/postcss-preset-env/blob/master/src/lib/plugins-by-id.js
*/
features: {
'color-mod-function': {}
}
},
/**
* PostCSS plugin to reference any parent/ancestor selector in nested CSS.
* https://github.com/toomuchdesign/postcss-nested-ancestors
*/
'postcss-nested-ancestors': {},
/*
* Nested rules unwrapper
* https://github.com/postcss/postcss-nested
* As you know 'postcss-preset-env' plugin has a 'postcss-nesting' feature
* but it does not work with nested rules like BEM
* Report: https://github.com/jonathantneal/postcss-nesting/issues/41
*/
'postcss-nested': {},
/*
* Compression tool
* https://github.com/cssnano/cssnano
*/
'cssnano': {}
}
};