How to build with web code only(remove cordova)

I build app and web site using Ionic 4 with same code base. Currently I found it loads a little bit slow if someone “FIRST TIME” open my web from outside web link( lazy load already ), it seems user needs to download large file from web with un-needed cordova codes. App is fast because all files are locally.
So, I would like to ask is there a way to build WEB only(w/o cordova)?
Thanks for any help or inspiration .

Any idea? How do you build PWA only code? Remove unnecessary cordova codes.

any idea is appreciated.