feat: move font config to global data cascade
This commit is contained in:
parent
ad435a16db
commit
f9926b3bac
14 changed files with 223 additions and 43 deletions
17
config/filters/index.js
Normal file
17
config/filters/index.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const postcss = require("postcss");
|
||||
const cssnano = require("cssnano");
|
||||
|
||||
const values = Object.values;
|
||||
const entries = Object.entries;
|
||||
|
||||
const minifyCss = async (css) => {
|
||||
const output = await postcss([cssnano]).process(css);
|
||||
|
||||
return output.css;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
entries,
|
||||
values,
|
||||
minifyCss,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue