Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

glsx-web / achievements-system-front

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • achievements-system-front
  • vite.config.ts
  • zhangquan's avatar
    框架修改 · 14428b0a
    zhangquan committed Feb 21, 2023
    14428b0a
vite.config.ts 421 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import * as  path from "path"
import styleImport, {AntdResolve} from 'vite-plugin-style-import'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
    styleImport({
      resolves: [
        AntdResolve()
      ]
    })
  ],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, './src')
    }
  },
})