You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/frontend/postcss.config.js

28 lines
617 B

7 years ago
const reload = require('require-nocache')(module);
const browsers = require('./browsers');
7 years ago
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': {},
7 years ago
'postcss-nested': {},
autoprefixer: {
browsers
7 years ago
}
}
};
return config;
};