2018-01-13 02:01:27 +00:00
|
|
|
const reload = require('require-nocache')(module);
|
|
|
|
|
|
|
|
module.exports = (ctx, configPath, options) => {
|
|
|
|
const config = {
|
|
|
|
plugins: {
|
|
|
|
'postcss-mixins': {
|
|
|
|
mixinsDir: [
|
|
|
|
'frontend/src/Styles/Mixins'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
'postcss-simple-vars': {
|
|
|
|
variables: () =>
|
|
|
|
ctx.options.cssVarsFiles.reduce((acc, vars) => {
|
|
|
|
return Object.assign(acc, reload(vars));
|
|
|
|
}, {})
|
|
|
|
},
|
2019-01-18 22:50:08 +00:00
|
|
|
'postcss-color-function': {},
|
2019-07-17 01:52:17 +00:00
|
|
|
'postcss-nested': {}
|
2018-01-13 02:01:27 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return config;
|
|
|
|
};
|