I’ve just done it with two separated builds (of my non-PWA app for now) merged in a “double-dist” directory. It’s not to complicated but it’s a bit messy because I needed to modify my (complicated) routes.
I simply had to modify the build
publicPath in config/index.js so the build process generates the right links, and detect the os with
navigator.userAgent in index.html to redirect.
It’s pretty awesome now that it’s working with my app. I’m switching to PWA asap.
@rstoenescu do you think it could be a standard PWA starter kit option (if not feature)?