NativeScript / nx

NativeScript for Nx.
Other
64 stars 17 forks source link

Assets are not being set when building #38

Open YonatanKra opened 3 years ago

YonatanKra commented 3 years ago

Hi, I've setup an nativescript app in an Nx project. I then created a library with a game I've developed with NativeScript. The game has assets (images, JSON and audio). When I'm trying to run the game in the app, it doesn't take the a assets from the library even though I've added it to the workspace.json. Here's the repo: https://github.com/YonatanKra/nx-conf-demo/tree/native-script The app is nativescript-dragons-and-coin. The lib has the same name without nativescript. Notice the addition of the assets to the build options: https://github.com/YonatanKra/nx-conf-demo/blob/native-script/workspace.json#L43

wearetelescopic commented 2 years ago

I have the same issues, assets get completely ignored. They do work in the web version with angular, but for the nativescript build we have to copy over the assets into the app. How can we tell the app to use the assets from a shared lib? There's no documentation whatsoever...