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 difference from the previous build in filesize

See original GitHub issue

Update: The issue is claimed by @elijahmanor.

Seems like a nice thing to do. We can read the files before clearing the build folder.

It could look like this:

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  48.73 KB (+2.12 KB)  build/static/js/main.42e82b08.js
  289 B                build/static/css/main.9a0fe4f1.css

(Right now we display the build size but not the delta.)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

5reactions
elijahmanorcommented, Aug 2, 2016

I can work on that tonight

1reaction
elijahmanorcommented, Aug 3, 2016

yes, that is the route that I took tonight… recursively found files in build folder and removed the hashes to build an object map of previous sizes that can be used later on to compare delta sizes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compare previous file size with the current filesize and flag
In order to compare the previous file size with the current file size you need to use a comparison operator ( < ,...
Read more >
Size vs Size on Disk - Why is there a difference?
It doesn't matter how small the actual file size is because when a file is written on the hard drive, it occupies a...
Read more >
filesize - Visual Studio Marketplace
This package is intended for use with the Visual Studio Code editor and it displays the size of the focused file in the...
Read more >
File Size Difference with Different Data Source Type
Solved: Hello, I have same data in two kind of source: one Synapse Analytics with SQL View and one in Azure Storage with...
Read more >
filesize - Manual - PHP
Here is my super fast method of getting >2GB files to output the correct byte size on any version of windows works with...
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