-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging before porting to capacitor-site
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: Creating Splash Screens and Icons | ||
description: Use cordova-res to generate resource images for native projects | ||
url: /docs/guides/splash-screens-and-icons | ||
contributors: | ||
- dotnetkow | ||
--- | ||
|
||
# Creating Splash Screens and Icons | ||
|
||
Initial support for splash screen and icon generation is now available. For complete details, see the [cordova-res docs](https://github.com/ionic-team/cordova-res). | ||
|
||
First, install `cordova-res`: | ||
|
||
```bash | ||
$ npm install -g cordova-res | ||
``` | ||
|
||
`cordova-res` expects a Cordova-like structure: place one icon and one splash screen file in a top-level `resources` folder within your project, like so: | ||
|
||
``` | ||
resources/ | ||
├── icon.png | ||
└── splash.png | ||
``` | ||
|
||
Next, run the following to generate all images then copy them into the native projects: | ||
|
||
```bash | ||
$ cordova-res ios --skip-config --copy | ||
$ cordova-res android --skip-config --copy | ||
``` |