Remove --max-old-space-size=4096 from npm build command (#4381)

* Remove --max-old-space-size=4096 from build

Looks like it's no longer needed.

* Update to node v12.

* Add build:old-node-version for those who have Node < 12.
This commit is contained in:
Arik Fraimovich
2019-12-05 22:41:57 +02:00
committed by GitHub
parent 263305214e
commit 7c05a730dc
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM node:10 as frontend-builder
FROM node:12 as frontend-builder
WORKDIR /frontend
COPY package.json package-lock.json /frontend/

View File

@@ -7,7 +7,8 @@
"start": "webpack-dev-server",
"bundle": "bin/bundle-extensions",
"clean": "rm -rf ./client/dist/",
"build": "npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack",
"build": "npm run clean && NODE_ENV=production webpack",
"build:old-node-version": "npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack",
"watch": "webpack --watch --progress --colors -d",
"analyze": "npm run clean && BUNDLE_ANALYZER=on webpack",
"analyze:build": "npm run clean && NODE_ENV=production BUNDLE_ANALYZER=on webpack",