react-use-wizard icon indicating copy to clipboard operation
react-use-wizard copied to clipboard

bundled size is extremely high

Open nikitph opened this issue 10 months ago • 0 comments

I am quite sure there is some config I must be missing as there is no reason the bundle size for this lib needs to be in MBs. Any suggestions?

Makua-202404-1513 30 33@2x Makua-202404-1513 32 36@2x

here is my webpack config

`const path = require('path'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const glob = require('glob');

module.exports = { entry: { 'bundle.js': glob.sync('build/static/?(js|css)/main.*.?(js|css)').map((f) => path.resolve(__dirname, f)), }, mode: 'production', output: { filename: 'build/static/js/bundle.min.js', }, module: { rules: [ { test: /.css$/, use: ['style-loader', 'css-loader'], }, ], }, plugins: [new UglifyJsPlugin()], }; `

nikitph avatar Apr 15 '24 08:04 nikitph