From 252f7ca82b843e05b89939dd286d128b37714f47 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 24 Sep 2024 15:35:25 +0200 Subject: [PATCH] fix(vite): set `NODE_ENV` in `package.json` scripts Signed-off-by: Jonas --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6b09aa988c3..c292972855a 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "module": "dist/index.js", "main": "dist/index.js", "scripts": { - "build": "NODE_OPTIONS='--max-old-space-size=4096' vite --mode production build", - "dev": "NODE_OPTIONS='--max-old-space-size=4096' vite --mode development build", - "watch": "NODE_OPTIONS='--max-old-space-size=8192' vite --mode development build --watch", + "build": "NODE_ENV=production NODE_OPTIONS='--max-old-space-size=4096' vite --mode production build", + "dev": "NODE_ENV=development NODE_OPTIONS='--max-old-space-size=4096' vite --mode development build", + "watch": "NODE_ENV=development NODE_OPTIONS='--max-old-space-size=8192' vite --mode development build --watch", "lint": "tsc && eslint --ext .js,.vue src cypress", "lint:fix": "tsc && eslint --ext .js,.vue src cypress --fix", "stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css css/*.scss",