mirror of
https://github.com/patdelphi/suanming.git
synced 2026-02-27 21:23:12 +08:00
23 lines
485 B
TypeScript
23 lines
485 B
TypeScript
import path from "path"
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vite"
|
|
import sourceIdentifierPlugin from 'vite-plugin-source-info'
|
|
|
|
const isProd = process.env.BUILD_MODE === 'prod'
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
sourceIdentifierPlugin({
|
|
enabled: !isProd,
|
|
attributePrefix: 'data-matrix',
|
|
includeProps: true,
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
})
|
|
|