Ionic 5 - How to replace default icon and splash screen image and generate resources

前端 未结 3 684
情话喂你
情话喂你 2021-02-04 10:48

I recently started using ionic 6 and capacitor(not cordova), and I don\'t know how to replace its default application icon and splash screen. Is there any way to do it and gene

3条回答
  •  眼角桃花
    2021-02-04 10:59

    Automatic icon and splash screen resizing CLI tool for Capacitor based applications.

    It automatically resizes and copies your icon.png and splash.png files to platform dedicated directories.

    It does NOT require any external binary libraries. Javascript only.

    Installation

    $ npm install capacitor-resources -g

    Usage

    Required files Add your icon.png (1024x1024 px) and splash.png (2732x2732 px) files to the 'resources' folder under the root of your capacitor based project.

    $ capacitor-resources

    https://www.npmjs.com/package/capacitor-resources

提交回复
热议问题