Created
March 26, 2017 00:50
-
-
Save Maarten88/604d266c224f6374b7e8471880923679 to your computer and use it in GitHub Desktop.
This file contains 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"); | |
[...] | |
plugins: [ | |
new CompressionPlugin({ | |
asset: "[path].gz[query]", | |
algorithm: "gzip", | |
test: /\.js$|\.css$/, | |
threshold: 10240, | |
minRatio: 0.8 | |
}) | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment