sindresorhus

gulp-size

Display the size of your project

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
KolinRobinson

If there are no files in the folder, then task .pipe (size ({ 'gzip': true, 'pretty': true, 'showFiles': true, 'showTotal': true })) gives an error message TypeError: Expected a finite number, got undefined: undefined at module.exports (W: \ Freelance \ Easy-webdev-startpack \ node_modules \ pretty-bytes \ index.js: 70: 9) at Transform._flush (W: \ Freelance \ Easy-webdev-startpack \ node_modules \ gulp-size \ index.js: 115: 21). This fix solves this error, allowing you not to write additional functionality (in the form of disabling tasks if the folder with files is empty). Thanks for attention! Link to the task on which the error is caused: https://github.com/budfy/Easy-webdev-startpack/commit/50ad1fe865cc240bb1552fcac04208ee9d626bf1#diff-6e5c91cb2762eb968b4beffd0b5f42b94a46c4b6b5400195cb64ed98787a09a2

KolinRobinson · 5y ago
brend8c

The total size of the project can be calculated without using "gulp-notify".. (Useful for, for example, reporting the total project size with gulp-notify) In my build, this works great!

brend8c · 5y ago
meefox

Could you add possibility to see gziped and non gziped size at the same time. Thank you.

meefox · 5y ago
Structured data for AI agents

Repository: sindresorhus/gulp-size. Description: Display the size of your project Stars: 225, Forks: 15. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: gulp-plugin, gzip, javascript, nodejs, size. Latest release: v5.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, zertosh, TrySound, steida, derhuerst, jonatanlinden, petemill, Richienb, KolinRobinson.