2025-08-10 14:32:24 +08:00
|
|
|
// import { defineConfig } from 'vite'
|
|
|
|
|
// import vue from '@vitejs/plugin-vue'
|
|
|
|
|
|
|
|
|
|
// // https://vite.dev/config/
|
|
|
|
|
// export default defineConfig({
|
|
|
|
|
// plugins: [vue()],
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import path from 'node:path'
|
|
|
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
|
2025-08-10 16:58:22 +08:00
|
|
|
export default defineConfig(() => {
|
|
|
|
|
return {
|
|
|
|
|
plugins: [vue(), tailwindcss()],
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
|
},
|
2025-08-10 14:32:24 +08:00
|
|
|
},
|
2025-08-10 16:58:22 +08:00
|
|
|
define: {
|
2025-08-10 17:03:58 +08:00
|
|
|
__BUILD_TIME__: JSON.stringify(process.env.BUILD_TIME || new Date().toISOString())
|
2025-08-10 16:58:22 +08:00
|
|
|
},
|
|
|
|
|
}
|
2025-08-10 14:32:24 +08:00
|
|
|
})
|
|
|
|
|
|