Skip to content

Instantly share code, notes, and snippets.

View merlox's full-sized avatar
😄
Building great things together!

merlox merlox

😄
Building great things together!
View GitHub Profile
@merlox
merlox / enabling brotli.txt
Created October 21, 2019 14:27
Here's how you enable brotli to load your web apps 95.5% faster (or 50% faster if you're using webpack -p)
// Webpack.config.js
const brotliPlugin = require('brotli-gzip-webpack-plugin')
// Inside your config
plugins: [
new brotliPlugin({
asset: '[file].br[query]',
algorithm: 'brotli',
test: /\.(js|css|html|svg)$/,
threshold: 10240,