mirror of
https://github.com/KarolChang/jm-expense-vue-ts.git
synced 2024-12-25 11:18:36 +00:00
22 lines
425 B
JavaScript
22 lines
425 B
JavaScript
// vite.config.js
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
const path = require('path')
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
},
|
|
server: {
|
|
port: 8080
|
|
},
|
|
// base: import.meta.env.DEV ? '/' : '/jm-expense-vue-ts/'
|
|
base: '/jm-expense-vue-ts/'
|
|
// base: './'
|
|
})
|