I am currently working on a Vue 3 project with Vite. While the project runs smoothly in my local development environment, I encountered a problem when trying to build it using the command npm run build
.
Here is the content of my vite.config.js file:
import {
defineConfig
} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [
vue(),
],
define: {
'process.env': {}
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
base: './',
})