mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-25 18:17:18 +00:00
Improve animated film bird
This commit is contained in:
+7
-1
@@ -13,11 +13,17 @@ const { optimize: svgoOptimize } = require('svgo');
|
||||
function minifyCSS(code) {
|
||||
return code
|
||||
.replace(/\/\*[\s\S]*?\*\//g, '')
|
||||
.replace(/\s*([{}:;,])\s*/g, '$1')
|
||||
// Never strip whitespace before `:`: `.parent :is(...)` is a
|
||||
// descendant selector, while `.parent:is(...)` targets the parent.
|
||||
.replace(/\s*([{},;])\s*/g, '$1')
|
||||
.replace(/:\s+/g, ':')
|
||||
.replace(/\s+/g, ' ')
|
||||
.replace(/;\}/g, '}')
|
||||
.trim();
|
||||
}
|
||||
if (minifyCSS('.parent :is(.a, .b) { color: red; }') !== '.parent :is(.a,.b){color:red}') {
|
||||
throw new Error('CSS minifier must preserve descendant combinators before functional pseudo-classes');
|
||||
}
|
||||
const MIN_AVIF_KB = 0;
|
||||
|
||||
function copyDirSync(src, dest) {
|
||||
|
||||
Reference in New Issue
Block a user