-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostcss.config.js
26 lines (26 loc) · 973 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
module.exports = ({ file, options, env }) => ({
plugins: {
'postcss-flexbugs-fixes': require('postcss-flexbugs-fixes'),
'postcss-import': { root: file.dirname },
'autoprefixer': env === 'production' ? options.autoprefixer : false,
'postcss-initial': require('postcss-initial')({
reset: 'inherited' // reset only inherited rules
}),
'postcss-mixins': require('postcss-mixins')({
mixins: require('./config/postcss.mixins')
}),
'postcss-nested': require('postcss-mixins')({
mixins: require('./config/postcss.mixins')
}),
'postcss-simple-vars': require('postcss-simple-vars')({
variables: function variables() {
return require('./postcss.variables')
},
unknown: function unknown(node, name, result) {
node.warn(result, 'Unknown variable ' + name)
}
}),
'postcss-math': require('postcss-math'),
'postcss-color-function': require('postcss-color-function'),
}
});