1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 18:28:19 +00:00
Sonarr/frontend/postcss.config.js

28 lines
617 B
JavaScript
Raw Normal View History

2018-01-13 02:01:27 +00:00
const reload = require('require-nocache')(module);
const browsers = require('./browsers');
2018-01-13 02:01:27 +00:00
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': {},
2018-01-13 02:01:27 +00:00
'postcss-nested': {},
autoprefixer: {
browsers
2018-01-13 02:01:27 +00:00
}
}
};
return config;
};