From 928c46a85c41ca833098c44a0e97103059aa6199 Mon Sep 17 00:00:00 2001 From: germanocaumo Date: Tue, 29 Apr 2025 08:39:46 +0000 Subject: [PATCH] fix(build): disable chunks generation Limit chunks to 1 so we always have one js file for the plugin. --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 5f01c5e..ffbdacd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ /* eslint-disable @typescript-eslint/no-var-requires */ const CopyWebpackPlugin = require('copy-webpack-plugin'); const path = require('path'); +const webpack = require('webpack'); module.exports = { entry: './src/index.tsx', @@ -60,5 +61,8 @@ module.exports = { { from: 'manifest.json', to: './' }, // Copy manifest.json to static/ in the output folder ], }), + new webpack.optimize.LimitChunkCountPlugin({ + maxChunks: 1, + }), ], };