-
Notifications
You must be signed in to change notification settings - Fork 4
/
postcss.config.js
33 lines (33 loc) · 894 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
module.exports = ({ file, options, env }) => ({
parser: 'postcss-scss',
plugins: {
'postcss-normalize': options && options.normalize !== false ? {} : false,
'postcss-custom-selectors': {},
'postcss-custom-media': {},
'postcss-pseudo-class-any-link': {},
'postcss-custom-properties': {
warnings: false
},
'postcss-calc': {},
'postcss-aspect-ratio': {},
'postcss-easings': {},
'postcss-assets': {
basePath: './',
loadPaths: options.dist ? [options.dist.cssimg] : []
},
'autoprefixer': {
cascade: false,
grid: true
},
'postcss-svg': {},
'postcss-short-size': {},
'postcss-flexbugs-fixes': {},
'cssnano': env !== 'production' ? false : {
discardComments: { removeAll: true },
zindex: false,
discardUnused: false,
reduceIdents: false,
mergeIdents: false
}
}
})