mirror of
https://github.com/cruip/vuejs-admin-dashboard-template.git
synced 2026-02-04 13:42:27 +08:00
32 lines
575 B
JavaScript
32 lines
575 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: /^~.+/,
|
|
replacement: (val) => {
|
|
return val.replace(/^~/, "");
|
|
},
|
|
},
|
|
{
|
|
find: '@tailwindConfig',
|
|
replacement: () => './src/css/tailwind.config.js',
|
|
}
|
|
],
|
|
},
|
|
optimizeDeps: {
|
|
include: [
|
|
'@tailwindConfig',
|
|
]
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true,
|
|
}
|
|
}
|
|
})
|