1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00
Sonarr/frontend/postcss.config.js

24 lines
529 B
JavaScript
Raw Normal View History

2018-01-13 04:01:27 +02: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));
}, {})
},
'postcss-color-function': {},
2019-07-17 03:52:17 +02:00
'postcss-nested': {}
2018-01-13 04:01:27 +02:00
}
};
return config;
};