skip to Main Content

Enable text compression using React, Webpack and Apache

Supposedly the compression-webpack-plugin is supposed to do it. I installed the plugin with npm npm install compression-webpack-plugin --save-dev And edited my webpack.config.js file to include const CompressionPlugin = require('compression-webpack-plugin'); ... plugins: [ new CompressionPlugin({ filename: "[path].gz[query]", algorithm: "gzip", test: /.(js|css)$/i,…

VIEW QUESTION
Back To Top
Search