Skip to content

Commit

Permalink
Merge pull request #6452 from nextcloud/fix/vite_node_env
Browse files Browse the repository at this point in the history
fix(vite): set `NODE_ENV` in `package.json` scripts
  • Loading branch information
mejo- authored Sep 25, 2024
2 parents 7428fa7 + d5e085b commit 8442d51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8442d51

Please sign in to comment.