-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
executable file
·42 lines (41 loc) · 1.05 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
const cssnano = require('cssnano');
const atImport = require('postcss-import');
const atEach = require('postcss-each');
const atVariables = require('postcss-at-rules-variables');
const atIf = require('postcss-conditionals');
const atFor = require('postcss-for');
const customProperties = require('postcss-custom-properties');
const mixins = require('postcss-mixins');
const nested = require('postcss-nested');
module.exports = {
plugins: [
atVariables({ /* atRules: ['media'] */ }),
atEach(),
atImport({
plugins: [
require('postcss-at-rules-variables')({ /* options */ }),
require('postcss-import')
]
}),
atFor(),
atIf(),
customProperties(),
nested(),
mixins(),
cssnano({
autoprefixer : {
add : true,
remove : true,
browsers : ['last 2 versions']
},
discardComments : {
removeAll : true
},
discardUnused : false,
mergeIdents : false,
reduceIdents : false,
safe : true,
sourcemap : true
})
]
};