mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dash): split out highlight.js into a separate minified file
This commit is contained in:
parent
fdf118e301
commit
3c21349572
1 changed files with 13 additions and 0 deletions
|
|
@ -9,5 +9,18 @@ export default defineConfig({
|
|||
build: {
|
||||
outDir: "dist",
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
manualChunks(filename) {
|
||||
filename = filename.split("node_modules");
|
||||
if (filename.length < 2) return 'index';
|
||||
else filename = filename[1];
|
||||
|
||||
// this is really big and makes the map size go over the sentry file cache limit
|
||||
if (filename.includes("highlight.js")) return 'vendor-0';
|
||||
|
||||
return 'vendor-1';
|
||||
// return `vendor-${filename.charCodeAt(1) % 2}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue