jm-expense-vue-ts/vite.config.js
2022-04-24 13:11:10 +08:00

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: './'
})