yarn build后显示内存超限,变异失败
yarn build后显示内存超限,变异失败
更改package.json文件:加上NODE_OPTIONS=\"--max-old-space-size=1024000\"
如下:
"build": "cross-env NODE_ENV=production NODE_OPTIONS=\"--max-old-space-size=1024000\" vite build && esno ./build/script/postBuild.ts",