Please provide the following:
- SDK Version: 45.0.0
- Platforms(Android/iOS/web/all): Android/iOS
- Add the appropriate “Tag” based on what Expo library you have a question on: configuration
Introduction
I have saved .psd, mockups, illustrations, etc. in my monorepo, inside the assets folder. If in the app.json assetBundlePatterns field, I just enter (inside an array) all the relative paths to the images/fonts/audios I use in the frontend, will the rest of useless assets be bundled in the resulting binary?
Example
- assets folder:
assets/
fonts/
GrandHotel.ttf
OpenSans-Bold.ttf
OpenSans-Italic.ttf
OpenSans-Light.ttf
OpenSans-Regular.ttf
OpenSans-SemiBold.ttf
images/
logo/
logo.png
logo.ai
logo.psd
icon.png
icon.psd
mockups/
... images not used in the app ...
audios/
new-message.mp3
- app.json:
I have saved .psd, mockups, illustrations, etc. in my monorepo, inside the assets folder. If in the app.json assetBundlePatterns field, I just enter (inside an array) all the relative paths to the images/fonts/audios I use in the frontend, will the rest of useless assets be bundled in the resulting binary?
"assetBundlePatterns": [
"./assets/fonts/GrandHotel.ttf",
"./assets/fonts/OpenSans-Bold.ttf",
"./assets/fonts/OpenSans-Italic.ttf",
"./assets/fonts/OpenSans-Light.ttf",
"./assets/fonts/OpenSans-Regular.ttf",
"./assets/fonts/OpenSans-SemiBold.ttf",
"./assets/images/logo/logo.png",
"./assets/images/logo/icon.png",
"./assets/audios/new-message.mp3"
]
Another question
Is it possible to simplify the array using patterns? I mean, how can I do, for example, to match all the .png files over the assets/images/logo/ folder? (including possible subdirectories)