Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 326e324

Browse files
committed
chore: add process env definition for browser
1 parent 91b5df0 commit 326e324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { libInjectCss } from "vite-plugin-lib-inject-css";
66
// https://vitejs.dev/config/
77
export default defineConfig({
88
plugins: [react(), libInjectCss()],
9+
define: {
10+
"process.env.NODE_ENV": '"production"',
11+
},
912
build: {
1013
lib: {
1114
// Could also be a dictionary or array of multiple entry points

0 commit comments

Comments
 (0)