I am trying to add splash screen to my meteor app. In mobile-config.js
file after adding
App.launchScreens({
//iOS
'iphone_2x': '/images/splash/splash-375x667@2x.png'
});
when I run meteor run ios-device
, it shows the following error:
Error while running for mobile platforms: ENOENT, stat '/images/splash/splash-375x667@2x.png'
Your file path(s) should probably not start with a slash. For a splash image located in yourApp/images/splash/splash-375x667@2x.png
:
App.launchScreens({
//iOS
'iphone_2x': 'images/splash/splash-375x667@2x.png'
});
See the official localmarket example's config from MDG's github for reference.