Skip to content

Commit

Permalink
revert vite config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LoTerence committed Dec 6, 2024
1 parent 13982aa commit c1f3104
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
18 changes: 0 additions & 18 deletions frontend/index.html

This file was deleted.

24 changes: 12 additions & 12 deletions frontend/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default defineConfig(() => {
"@": resolve(INPUT_DIR),
},
},
// root: resolve(INPUT_DIR),
root: resolve(INPUT_DIR),
//keep static assets path consistent with django
// base: "/static/",
base: "/static/",
plugins: [
svgr(),
react(),
Expand All @@ -32,15 +32,15 @@ export default defineConfig(() => {
usePolling: true,
},
},
// build: {
// manifest: true,
// emptyOutDir: true,
// outDir: resolve(OUTPUT_DIR),
// rollupOptions: {
// input: {
// entry: join(INPUT_DIR, "/index.tsx"),
// },
// },
// },
build: {
manifest: true,
emptyOutDir: true,
outDir: resolve(OUTPUT_DIR),
rollupOptions: {
input: {
entry: join(INPUT_DIR, "/index.tsx"),
},
},
},
};
});

0 comments on commit c1f3104

Please sign in to comment.