I have an angular2 typescript app.
I host with Firebase and use cloudflare for speed, caching and protection.
The browser header says: accept-encoding:gzip,
Those gzips are meat for webservers that can use pregzipped files that they dont have to gzip it with every request or cache it. The js it then transfered compressed and the browser/cloudflare handles the rest. So you dont have to edit the script tags to use gzip or dont use it.
But you can simply use nginx and enable gzip there (and dont use the .gz) for the few request from cloudflare.