react-app-rewire-compression-plugin
v1.0.0
Published
Add compression-webpack-plugin to a react-app-rewired config.
Downloads
1,662
Maintainers
Readme
react-app-rewire-compression-plugin
Add webpack CompressionPlugin
to a react-app-rewired
config.
const rewireCompressionPlugin = require('react-app-rewire-compression-plugin');
// Compress generated js files
config = rewireCompressionPlugin(config, env, {
test: /\.js(\?.*)?$/i,
cache: true
})