Sign in

Administrator / spring-boot-microservices-onlineshooping-fullstack · Files

Logo

GitLab

  • Back to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • spring-boot-microservices-onlineshooping-fullstack
  • frontend
  • vite.config.js
  • mdoified
    7817f63f
    Administrator authored
    2025-10-26 09:48:01 +0800  
    Browse Code »
vite.config.js 410 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'

export default defineConfig({
  plugins: [react()],
  // 明确设置根目录和入口文件
  root: '.',
  publicDir: 'public',
  build: {
    outDir: 'dist',
    emptyOutDir: true,
    rollupOptions: {
      input: resolve(__dirname, 'index.html')
    }
  },
  server: {
    port: 3000,
    
  }
})