Hi Niklas,
Yes, this is permitted as long as the original asset files are not redistributed or made available separately.
Using optimized runtime assets inside your WebGL game build is fine.
Regards, Oleh