Created
August 10, 2019 09:08
-
-
Save Weiyuan-Lane/dbd06d1b0b587bf8a15bbdae21521dbb to your computer and use it in GitHub Desktop.
Using compression-webpack-plugin with Next.js + webpack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CompressionPlugin = require('compression-webpack-plugin'); | |
module.exports = { | |
webpack: function(config) { | |
config.plugins.push(new CompressionPlugin()); | |
return config; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment