Skip to content

Don't compress development assets and fix deprecation warning in production

username-removed-636429 requested to merge dont-compress-development-assets into master

What does this MR do?

Removes CompressionPlugin from development config and runs it only in production. This should reduce webpack-dev-server's memory footprint and compile time.

Also replaces the deprecated NoErrorsPlugin with NoEmitOnErrorsPlugin (It's the same exact plugin, they just renamed it - see: https://github.com/webpack/webpack/pull/3570).

Are there points in the code the reviewer needs to double check?

yarn run webpack-prod should run, should produce *.gz files for all assets, and not have any deprecation warnings.

Why was this MR needed?

^

Screenshots (if relevant)

n/a

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

n/a

Merge request reports