question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lib.min.js is too big after packing

See original GitHub issue

Expected Behavior

When i open scratch project, And In debugging tools I found lib.min.js only 3.9M :

build-official

Actual Behavior

But When I packed it locally, I found the file was very large. I really wonder is there some content that needs to be separately configured?

build-custom

Steps to Reproduce

  • git clone https://github.com/LLK/scratch-gui develop branch
  • npm run build

Operating System and Browser

Window10 Chrome 68.0.3440.106

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
oddstarcommented, Feb 28, 2019

I set NODE_ENV=production, and npm run build; but it’s also too big; How to minmize lib.min.js ???

0reactions
shenfyjamescommented, Apr 20, 2020

How to minmize lib.min.js? it’s too big

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Bundles Are Too Big : Break Up The Libraries
The Good: D3 version 4. D3 has always been a heavy library, the latest minified totals to 213KB. It is also broken up...
Read more >
How to minimize the size of webpack's bundle? - Stack Overflow
After running the optimization with the -p flag, it reduces the bundle to 700kb, which is still extremely big. I have looked into...
Read more >
5 Methods to Reduce JavaScript Bundle Size - Bits and Pieces
5 Methods to Reduce JavaScript Bundle Size · 1. Code Splitting with Webpack · 2. Using Webpack Plugins for Tree Shaking · 3....
Read more >
Node module size: See how I reduced it by 90% | TSH.io
You've ended up with 1GB node module size? We know the struggle is real but there's a way to reduce that size to...
Read more >
Speed Up Your Javascript Load Time - BetterExplained
First, you can try to make the javascript file smaller itself. There are lots of utilities to “crunch” your files by removing whitespace...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found