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.

Display gzipped size for JS and CSS after builds

See original GitHub issue

We currently recommend http-server for testing prod builds but it doesn’t gzip. This might lead you down the path of optimizing the wrong thing in the bundle size. We should fix our instructions.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
lvwrencecommented, Jul 26, 2016

I’ll take this!

1reaction
ForbesLindesaycommented, Jul 27, 2016

We could recommend st for serving the files. It’s a pretty fully fledged node.js static file server with gzip enabled by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I estimate the size of my gzipped script?
Start with 100 JS files that have gone through the same minification pipeline. For each file, compute the ratio in sizes between gzip...
Read more >
How To Optimize Your Site With GZIP Compression
In your browser: In Chrome, open the Developer Tools > Network Tab (Firefox/IE will be similar). Refresh your page, and click the network...
Read more >
Why do i get gzip css and js with full size instead ... - Server Fault
I am doing some tests with gzip, I have manually compressed the CSS and JS with gzip. The size of the JS has...
Read more >
5 Methods to Reduce JavaScript Bundle Size - Bits and Pieces
Compressing Bundles​​ According to research by CertSimple, Brotli compresses JavaScript files 14% smaller than Gzip. You can use compression- ...
Read more >
The Difference Between Minification and Gzipping | CSS-Tricks
css files and .js files). They are both things that reduce the size of the file, making it more efficient in crossing the...
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