angular-pwa-seed
angular-pwa-seed copied to clipboard
Differences between Web vs Browser (Cordova)
Discussion about if it is worth to keep both build process (npm run start and npm run start.browser) since the cordova already support a web/browser target!
Should mantain only cordova to keep it simple? Any pros and cons is welcome!
Things to consider:
- Different code when using device (hardware) features (even to web).
Have to test/check if device apis of browser work inside cordova (with and without crosswalk webview)
References:
- ~~Another, LiveReload is already working on web
ng serve~~ (Now works at cordova too) -
Slightly faster build at
npm run start(once no cordova is involved).Have importance once livereload is working?
More info at: https://www.raymondcamden.com/2016/03/22/the-cordova-browser-platform/
Another thing is the cordova plugins that influence the app.
Ex: Splashscreen configs at config.xml
Those only works at browser with cordova.