ITeye博客

ionic2

共 4 篇文章

ionic添加icon和splash--转载

当我们用ionic创建好app后,默认的logo及spash页面均是cordova的图标,显的不太好看,如何使用自己的icon和splash页呢? 1、icon生成 生成一个192*192px的logo,保存为icon.png,icon.ai或icon.psd(只支持这三种格式),图片不要有圆角(每个平台会自己给图片加效果,如ios会自动给logo加圆角效果)。 在ionic的根目录下有一个resources的目录,将icon的图片放在这个目录下。 运行命令,生成不同平台的icon。 $ ionic resources --icon 运行命令后,会发现生成了一系列的不同尺寸的图片,并且在co…

2017-09-19 08:35 · ionic2 · splash

Ionic 2: ReferenceError: webpackJsonp is not defined

I'm new to Ionic. I have started project with super template. But when I try to run the app in browser. It throws an error saying: ReferenceError: webpackJsonp is not defined at http://localhost:8100/build/main.js:1:1 解决: This is a breaking change in Ionic-App-Scripts https://github.com/ionic-team/…

2017-07-21 16:47 · ionic2

npm ERR! code EINTEGRITY (npm 5)

最近从npm4升级成npm5,在运行 npm install 时,报如下错误: Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-7kVpawZ+S98Vw5VnEKTDbBfY+PA= integrity checksum failed when using sha1: wanted sha1-7kVpawZ+S98Vw5VnEKTDbBfY+PA= but got sha512-39w19Mseg83z68JsIdcuFH3Z+BR/Jc3gRBB4Pn/a…

2017-07-06 15:25 · ionic2

Android build error upon upgrading Cordova camera plugin

最近Ionic2项目安装cordova-plugin-camera插件,一直报错。(已经Add了android的platform),大概的错误信息如下。 [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova plugin add cordova-plugin-camera --save (exit code 1): Installin…

2017-07-06 15:21 · ionic2