Skip to content

Commit

Permalink
add "build-web" script
Browse files Browse the repository at this point in the history
  • Loading branch information
medyo committed Nov 19, 2023
1 parent 5162b85 commit 2d32cfa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"proxy": "https://api.hackertab.dev/",
"scripts": {
"start": "craco start",
"build-web": "craco --max_old_space_size=4096 build",
"build-web": "./script/build-web.sh",
"build": "./script/build.sh",
"build-firefox": "./script/build-firefox.sh",
"build-chrome": "./script/build-chrome.sh",
Expand Down
16 changes: 16 additions & 0 deletions script/build-web.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

build() {
echo 'building app for web'

export INLINE_RUNTIME_CHUNK=false
export GENERATE_SOURCEMAP=false

craco --max_old_space_size=4096 build

rm -rf dist
mkdir -p dist
cp -r build/* dist/
}

build

0 comments on commit 2d32cfa

Please sign in to comment.