mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
feat: some messed up stuff to fix some stuff
This commit is contained in:
+1
-16
@@ -85,22 +85,7 @@ export default defineConfig(({ command }) => ({
|
||||
pageState: join(__dirname, "src", "pageState.js"),
|
||||
},
|
||||
output: {
|
||||
assetFileNames(info) {
|
||||
const labels = [
|
||||
...(info.names ?? []),
|
||||
...(info.originalFileNames ?? []),
|
||||
].join(" ");
|
||||
if (
|
||||
labels.includes("pdf.worker.min") ||
|
||||
labels.includes("pdf.worker.mjs")
|
||||
) {
|
||||
return "resources/pdfjs/pdf.worker.min.mjs";
|
||||
}
|
||||
if (labels.includes("legacy") && labels.includes("pdf.min")) {
|
||||
return "resources/pdfjs/pdf.legacy.min.mjs";
|
||||
}
|
||||
return "assets/[name]-[hash][extname]";
|
||||
},
|
||||
assetFileNames: "assets/[name]-[hash][extname]",
|
||||
},
|
||||
onwarn(warning, warn) {
|
||||
if (warning.code === "FILE_NAME_CONFLICT") return;
|
||||
|
||||
Reference in New Issue
Block a user