You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is outside the scope of the project or not, but a nifty feature would be if running weigh from a directory that contains a package.json file would take the dependencies declared there into account.
For example, if I am in a directory that contains a package.json that looks like this:
And I run weigh react-wysiwyg, the output could be:
$ weigh react-wysiwyg
Approximate weight of react-wysiwyg, excluding dependencies already installed in this project:
Uncompressed: 679 kB
Minified (uglify): 166 kB
Minified and gzipped (level: default): 45 kB
This could alternatively be turned on via an option instead.
My main motivation for this would be determining how much extra filesize would a new dependency add to my project, excluding sub-dependencies that I already bundle.
The text was updated successfully, but these errors were encountered:
I'm not sure if this is outside the scope of the project or not, but a nifty feature would be if running
weigh
from a directory that contains apackage.json
file would take the dependencies declared there into account.For example, if I am in a directory that contains a
package.json
that looks like this:And I run
weigh react-wysiwyg
, the output could be:$ weigh react-wysiwyg Approximate weight of react-wysiwyg, excluding dependencies already installed in this project: Uncompressed: 679 kB Minified (uglify): 166 kB Minified and gzipped (level: default): 45 kB
This could alternatively be turned on via an option instead.
My main motivation for this would be determining how much extra filesize would a new dependency add to my project, excluding sub-dependencies that I already bundle.
The text was updated successfully, but these errors were encountered: