We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5162b85 commit 2d32cfaCopy full SHA for 2d32cfa
package.json
@@ -43,7 +43,7 @@
43
"proxy": "https://api.hackertab.dev/",
44
"scripts": {
45
"start": "craco start",
46
- "build-web": "craco --max_old_space_size=4096 build",
+ "build-web": "./script/build-web.sh",
47
"build": "./script/build.sh",
48
"build-firefox": "./script/build-firefox.sh",
49
"build-chrome": "./script/build-chrome.sh",
script/build-web.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+build() {
4
+ echo 'building app for web'
5
6
+ export INLINE_RUNTIME_CHUNK=false
7
+ export GENERATE_SOURCEMAP=false
8
9
+ craco --max_old_space_size=4096 build
10
11
+ rm -rf dist
12
+ mkdir -p dist
13
+ cp -r build/* dist/
14
+}
15
16
+build
0 commit comments