give webpack more memory to build

This commit is contained in:
Sean Yesmunt 2020-02-04 15:32:55 -05:00
parent 4091aca554
commit 142189fd27

View file

@ -20,7 +20,7 @@
}, },
"main": "./dist/electron/main.js", "main": "./dist/electron/main.js",
"scripts": { "scripts": {
"compile:electron": "webpack --config webpack.electron.config.js", "compile:electron": "node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --config webpack.electron.config.js",
"compile:web": "cd ./lbrytv && webpack --config webpack.config.js", "compile:web": "cd ./lbrytv && webpack --config webpack.config.js",
"compile": "cross-env NODE_ENV=production yarn compile:electron && cross-env NODE_ENV=production yarn compile:web", "compile": "cross-env NODE_ENV=production yarn compile:electron && cross-env NODE_ENV=production yarn compile:web",
"dev": "yarn dev:electron", "dev": "yarn dev:electron",