Skip to content

Commit

Permalink
build: fix build base
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Dec 2, 2023
1 parent bcac395 commit 2b294c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ for (const entry of entries) {

// https://vitejs.dev/config/
export default defineConfig({
base: "https://static.prts.wiki/widgets/release/",
resolve: {
alias: {
"@": resolve(dirname(fileURLToPath(import.meta.url)), "./src"),
Expand Down Expand Up @@ -85,6 +84,12 @@ export default defineConfig({
// SpineViewer 不需要改导入路径
continue;
}
for (const name of fileNames) {
chunk.code = chunk.code.replaceAll(
`./${name}`,
`https://static.prts.wiki/widgets/release/${name}`,
);
}
}
},
},
Expand Down

0 comments on commit 2b294c7

Please sign in to comment.