lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

Ionic App Scripts overriding ionic serve options #219

Closed kamok closed 7 years ago

kamok commented 7 years ago

I discovered that there's a number of useful ionic serve command, such as ionic serve --platform ios which runs the app with the iOS stylesheets and Config. However, using ionic app scripts, and more specifically this line in package.json:

"ionic:serve": "ionic-app-scripts serve"

Will disable all of those options.

I haven't dig enough on ionic app scripts to see what's the exact utility that it brings, but it seems to be a gotcha that should be made aware.

lathonez commented 7 years ago

Interesting. Suggest raising an upstream issue with Ionic if you think the behaviour should be changed. Our package.json comes from their starter app.