如何从离子2应用程序中删除启动画面?

时间:2017-04-04 09:09:17

标签: angular ionic2

我使用离子2设计了应用程序。我不想在我的应用程序中使用闪屏。那么,如何删除它?

1 个答案:

答案 0 :(得分:9)

根据离子2的最新版本:

  1. 删除插件ionic cordova plugin rm cordova-plugin-splashscreen
  2. 删除npm包npm uninstall --save @ionic-native/splash-screen
  3. 删除config.xml
  4. 中有关splashScreen的首选项
  5. 将此行添加到config.xml <preference name="SplashScreen" value="none"/>
  6. 从app.module.ts“import and providers”
  7. 中删除splashScreen
  8. 从app.component.ts
  9. 中删除splashScreen
相关问题