Skip to content

Commit

Permalink
adjust yarn build
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Dec 24, 2024
1 parent 18054b1 commit ac7f107
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"build": "yarn run generate && CI=false NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vite build",
"test": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vitest",
"test-coverage": "yarn test run --coverage",
"generate": "graphql-codegen --config codegen.yml",
"generate": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' graphql-codegen --config codegen.yml",
"lint": "eslint . --ext .ts,.tsx --quiet && yarn format-check && yarn type-check",
"lint-fix": "eslint '*/**/*.{ts,tsx}' --quiet --fix && yarn format",
"format-check": "prettier --check src",
Expand Down
5 changes: 5 additions & 0 deletions datahub-web-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export default defineConfig(({ mode }) => {
envPrefix: 'REACT_APP_',
build: {
outDir: 'dist',
target: 'esnext',
minify: 'esbuild',
reportCompressedSize: false,
// Limit number of worker threads to reduce CPU pressure
workers: 3, // default is number of CPU cores
},
server: {
open: false,
Expand Down

0 comments on commit ac7f107

Please sign in to comment.