how to enable gzip in an angular cli project

Viewed 5264

I want to implement compression and then have nginx serve up the compressed files without doing the compression on the fly. I haven't been able to figure out a way to get gzipping into an angular cli project. I was thinking about a separate webpack config and looping over the different bundles but that seemed like it would be introducing unnecessary complexity.

1 Answers
Related