Initial commit

This commit is contained in:
2026-07-16 16:12:35 -05:00
commit f9da0e6c0a
11 changed files with 1100 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
// vite.config.ts
import { defineConfig } from 'vite'
import path from 'path'
export default defineConfig({
root: 'src',
build: {
outDir: '../dist',
emptyOutDir: true,
sourcemap: true,
minify: 'oxc', // Use esbuild for minification (default)
assetsDir: 'assets',
rollupOptions: {
input: path.resolve(__dirname, 'src/index.html'),
output: {
assetFileNames: 'assets/[name]-[hash][extname]' // Hashing for cache busting
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'), // Optional alias for cleaner imports
}
},
define: {
'process.env.NODE_ENV': '"production"' // Inject environment variables
}
})