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.
You can use Compression Webpack Plugin. To chane the webpack config inside the Angular CLI, however, you'd have to do ng eject first. Keep in mind that this action is irrevesable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With