Skip to content

bundled size is extremely high #189

Description

@nikitph

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()],
};
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions