-
-
Save Nilanth/dc7cfeb9bb2a24f9de78d2bf1a27c44e to your computer and use it in GitHub Desktop.
vite.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from "vite"; | |
import react from "@vitejs/plugin-react"; | |
export default ({ mode }) => { | |
return defineConfig({ | |
plugins: [react()], | |
define: { | |
"process.env.NODE_ENV": `"${mode}"`, | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment