I use the latest CLI Angular 2 to build and build the application.
As a result, the CLI creates the main.bundle.js.gz file that I want to host on the IIS server.
I am not sure how to configure IIS to serve compressed content.
When I manually change the index.html file to the ".gz" file, it does not work. Someone tried this in IIS and could give some insight on how to configure it to make it work.
I know that IIS has built-in compression support, but I do not want to use it. I want to use an already compressed file using the Angular CLI.
Any help would be assigned.
source
share