mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
adjust memory size
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@
|
||||
"lint:tsc": "./node_modules/.bin/tsc -p ./tsconfig.json",
|
||||
"prepare": "husky install",
|
||||
"format-svg": "./node_modules/.bin/svgo -r ./icons",
|
||||
"test:pw": "./playwright/make-envs-script.sh && NODE_OPTIONS=\"--max-old-space-size=6144\" playwright test -c playwright-ct.config.ts",
|
||||
"test:pw": "./playwright/make-envs-script.sh && NODE_OPTIONS=\"--max-old-space-size=4096\" playwright test -c playwright-ct.config.ts",
|
||||
"test:pw:local": "export NODE_PATH=$(pwd)/node_modules && yarn test:pw",
|
||||
"test:pw:docker": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.28.0-focal ./playwright/run-tests.sh",
|
||||
"test:jest": "jest",
|
||||
|
||||
@@ -51,6 +51,12 @@ const config: PlaywrightTestConfig = {
|
||||
exportAsDefault: true,
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
// it actually frees some memory that vite needs a lot
|
||||
// https://github.com/storybookjs/builder-vite/issues/409#issuecomment-1152848986
|
||||
sourcemap: false,
|
||||
minify: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user