mirror of
https://github.com/cruip/vuejs-admin-dashboard-template.git
synced 2026-02-04 13:42:27 +08:00
27 lines
491 B
JavaScript
27 lines
491 B
JavaScript
import path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
define: {
|
|
'process.env': process.env
|
|
},
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@tailwindConfig': path.resolve(__dirname, 'tailwind.config.js'),
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: [
|
|
'@tailwindConfig',
|
|
]
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true,
|
|
}
|
|
}
|
|
})
|