mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 10:17:47 +00:00
27 lines
617 B
JavaScript
27 lines
617 B
JavaScript
const reload = require('require-nocache')(module);
|
|
const browsers = require('./browsers');
|
|
|
|
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': {},
|
|
autoprefixer: {
|
|
browsers
|
|
}
|
|
}
|
|
};
|
|
|
|
return config;
|
|
};
|