2017-10-02 03:05:28 +00:00
|
|
|
const reload = require('require-nocache')(module);
|
|
|
|
|
2021-06-27 04:05:34 +00:00
|
|
|
const cssVarsFiles = [
|
|
|
|
'./src/Styles/Variables/dimensions',
|
|
|
|
'./src/Styles/Variables/fonts',
|
|
|
|
'./src/Styles/Variables/animations',
|
|
|
|
'./src/Styles/Variables/zIndexes'
|
|
|
|
].map(require.resolve);
|
2017-10-02 03:05:28 +00:00
|
|
|
|
2021-06-27 04:05:34 +00:00
|
|
|
const mixinsFiles = [
|
|
|
|
'frontend/src/Styles/Mixins/cover.css',
|
|
|
|
'frontend/src/Styles/Mixins/linkOverlay.css',
|
|
|
|
'frontend/src/Styles/Mixins/scroller.css',
|
|
|
|
'frontend/src/Styles/Mixins/truncate.css'
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
2024-08-16 13:13:20 +00:00
|
|
|
'autoprefixer',
|
2021-06-27 04:05:34 +00:00
|
|
|
['postcss-mixins', {
|
|
|
|
mixinsFiles
|
|
|
|
}],
|
|
|
|
['postcss-simple-vars', {
|
|
|
|
variables: () =>
|
|
|
|
cssVarsFiles.reduce((acc, vars) => {
|
|
|
|
return Object.assign(acc, reload(vars));
|
|
|
|
}, {})
|
|
|
|
}],
|
|
|
|
'postcss-color-function',
|
|
|
|
'postcss-nested'
|
|
|
|
]
|
2023-01-16 05:19:43 +00:00
|
|
|
};
|