Skip to content

Commit 9c9feb3

Browse files
committed
Define process.env.NODE_ENV as production in Vite configuration
1 parent f7fa338 commit 9c9feb3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
import { defineConfig } from 'vite';
33

44
export default defineConfig({
5+
define: {
6+
'process.env.NODE_ENV': JSON.stringify('production'),
7+
},
58
build: {
69
lib: {
710
entry: './src/index.ts',

0 commit comments

Comments
 (0)