Jakub Kostka
10/07/2024, 1:34 PMconst TerserPlugin = require("terser-webpack-plugin");
config.optimization = config.optimization || {};
config.optimization.minimize = true;
config.optimization.minimizer = [
new TerserPlugin({
terserOptions: {
mangle: true, // Note: By default, mangle is set to true.
compress: true, // Disable the transformations that reduce the code size.
output: {
beautify: false,
},
},
}),
];
inside config.js
under webpack.config.d which produces 6MB composeApp.wasm file.Jakub Kostka
10/09/2024, 10:19 AMbashor
10/09/2024, 10:41 PMbashor
10/09/2024, 10:46 PMJakub Kostka
10/10/2024, 7:53 AMAlex Styl
10/12/2024, 9:15 AMAlex Styl
10/12/2024, 9:15 AMbashor
10/12/2024, 12:56 PMAlex Styl
10/12/2024, 1:55 PM