Unreal project sizes just end up big. This is with Virtual Shaders, Nanite, and Lumen all turned off.
Unreal Engine doesn't exactly support creating an HTML project, sorry.