mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
24 lines
529 B
JavaScript
24 lines
529 B
JavaScript
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': {},
|
|
'postcss-nested': {}
|
|
}
|
|
};
|
|
|
|
return config;
|
|
};
|