1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00
Radarr/frontend/postcss.config.js

24 lines
529 B
JavaScript
Raw Normal View History

2018-11-23 08:04:42 +01: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));
}, {})
},
2018-11-23 08:05:47 +01:00
'postcss-color-function': {},
2019-07-27 07:33:33 +02:00
'postcss-nested': {}
2018-11-23 08:04:42 +01:00
}
};
return config;
};