Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit f064363

Browse files
committed
Merge branch 'master' of github.com:RunestoneInteractive/RunestoneComponents
2 parents 2c21f28 + c6ac4d5 commit f064363

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"license": "ISC",
2020
"devDependencies": {
2121
"copy-webpack-plugin": "^8.0.0",
22+
"compression-webpack-plugin": "^6.0.0",
2223
"css-loader": "^5.0.0",
2324
"css-minimizer-webpack-plugin": "^3.0.0",
2425
"eslint": "^7.0.0",

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const path = require("path");
1010

1111
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
1212
const CopyPlugin = require('copy-webpack-plugin');
13+
const CompressionPlugin = require("compression-webpack-plugin");
1314
const HtmlWebpackPlugin = require('html-webpack-plugin');
1415
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
1516

@@ -90,6 +91,8 @@ module.exports = (env, argv) => {
9091
filename: '[name].css?v=[contenthash]',
9192
chunkFilename: '[id].css',
9293
}),
94+
// Copied from the `webpack docs <https://webpack.js.org/plugins/compression-webpack-plugin>`_. This creates ``.gz`` versions of all files. The webserver in use needs to be configured to send this instead of the uncompressed versions.
95+
new CompressionPlugin(),
9396
],
9497
};
9598
};

0 commit comments

Comments
 (0)