Add minify for vite build and exclude dist directory for built artifact

main
Jason Zhu 2024-05-04 20:26:46 +10:00
parent 911392c7bb
commit 9193e44c06
3 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@ -26,6 +26,7 @@
# Icon must end with two \r
Icon
# Thumbnails
._*
@ -131,3 +132,4 @@ $RECYCLE.BIN/
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
dist/

View File

@ -5,6 +5,7 @@
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
<excludeFolder url="file://$MODULE_DIR$/dist" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />

View File

@ -5,4 +5,7 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), TanStackRouterVite()],
build: {
minify: 'esbuild',
},
});