21 lines
480 B
TypeScript
21 lines
480 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
import viteCompression from "vite-plugin-compression";
|
|
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
viteCompression({ deleteOriginFile: false }),
|
|
nodePolyfills(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
css: {},
|
|
});
|