Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix webpack size limit (#375)
Browse files Browse the repository at this point in the history
* Run CI

* Increase webpack max asset and entrypoint sizes to 30 KiB

* Revert CI change
stefankiesz authored Jan 8, 2025
1 parent 2cd1c56 commit 6f5fad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.dist.config.js
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@ const TerserPlugin = require('terser-webpack-plugin');
const { merge } = require('webpack-merge');

// Define maximum asset size before gzipping
const MAX_ASSET_SIZE_KB = 23.6;
const MAX_ASSET_SIZE_BYTES = MAX_ASSET_SIZE_KB * 1024;
const MAX_ASSET_SIZE_KIB = 30;
const MAX_ASSET_SIZE_BYTES = MAX_ASSET_SIZE_KIB * 1024;

module.exports = merge(require('./webpack.config'), {
mode: 'production',

0 comments on commit 6f5fad2

Please sign in to comment.