/.js Secret
Created
May 14, 2022 07:54
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