snikhilesh's picture
Upload folder using huggingface_hub
023df37 verified
raw
history blame
491 Bytes
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import sourceIdentifierPlugin from 'vite-plugin-source-identifier'
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"),
},
},
})