waku-lab/examples/buddybook/vite.config.ts

28 lines
568 B
TypeScript
Raw Normal View History

2024-10-25 00:11:04 +00:00
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
2024-10-29 11:29:34 +00:00
base: '/buddybook/',
2024-10-29 10:50:46 +00:00
build: {
assetsDir: 'assets',
manifest: true,
rollupOptions: {
output: {
entryFileNames: 'assets/[name]-[hash].js',
chunkFileNames: 'assets/[name]-[hash].js',
assetFileNames: 'assets/[name]-[hash].[ext]'
}
}
2024-10-29 11:59:58 +00:00
},
define: {
'process.env': {}
2024-10-29 10:50:46 +00:00
}
2024-10-25 00:11:04 +00:00
})