Reputation: 24983
so I'd like to use Ionic for a progressive web app but obviously since its a pwa (just web + offline) there is no need for the whole Cordova stack. Mostly would like to use it for its CSS and nice UI / styles.
Is this supported? Didn't find anything in their docs.
Regards,
Sean
Upvotes: 0
Views: 401
Reputation: 19903
There is an option in ionic cli for that --no-cordova
You can read about how to use it in below link http://robferguson.org/2017/04/29/build-a-desktop-application-with-ionic-3-and-angular-4/
Upvotes: 0
Reputation: 19212
Sure. Just delete the reference to cordova.js
from the index.html
, and maybe call Angular 2's enableProdMode()
yourself. You can then pretty much use the build you get when you're running your app in browser preview.
Upvotes: 2