nklayman / vue-cli-plugin-electron-builder

Easily Build Your Vue.js App For Desktop With Electron
https://nklayman.github.io/vue-cli-plugin-electron-builder/
MIT License
4.12k stars 278 forks source link

Unable to modify Heap memory limit #1985

Open pgh268400 opened 1 year ago

pgh268400 commented 1 year ago

Describe the bug Literally I can't modify the limitations of heap memory.

    "dist:build": "cross-env NODE_ENV=production NODE_OPTIONS='--max-old-space-size=8192' electron-builder",
    "dist:build2": "cross-env NODE_ENV=production NODE_OPTIONS='--max-old-space-size=8192' vue-cli-service electron:build",

Attempted to release restrictions using the code failed. If I use more than about 2gb to 3gb of the heap area, the program will end immediately (Heap out of memory)

Expected behavior I want to successfully lift the memory limit. It is not modified in the usual way. The Node.js runtime releases properly with the above-mentioned executable code, but the heap memory limit is not modified when using this cli service.

Environment (please complete the following information):