mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-04 14:38:12 +08:00
Fix broken CSS due to bug in Cloudflare minifier
This commit is contained in:
@@ -71,6 +71,11 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
output: {
|
||||||
|
// Inject `.min` into the filename of minified CSS files to tell Cloudflare not to minify it again.
|
||||||
|
// Cloudflare's minifier breaks the CSS due to a bug where it removes whitespace around calc() plus operators.
|
||||||
|
assetFileNames: (info) => `assets/[name]-[hash]${info.name?.endsWith(".css") ? ".min" : ""}[extname]`,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user