add --reset-cache to stop metro-cache from growing

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-07-23 21:38:38 -04:00
parent e64777f1d0
commit 9d1bf5714d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 7 additions and 2 deletions

View File

@ -137,8 +137,13 @@ function buildClojureScript() {
# from index.desktop.js create javascript bundle and resources folder
echo "Generating $JS_BUNDLE_PATH and assets folder..."
react-native bundle --entry-file index.desktop.js --bundle-output "$JS_BUNDLE_PATH" \
--dev false --platform desktop --assets-dest "$WORKFOLDER/assets"
react-native bundle \
--reset-cache \
--dev false \
--entry-file index.desktop.js \
--bundle-output "$JS_BUNDLE_PATH" \
--assets-dest "$WORKFOLDER/assets" \
--platform desktop
echo -e "${GREEN}Generating done.${NC}"
echo ""
}