Last 12 weeks · 0 commits
4 of 6 standards met
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
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: 1y ago. Community health: 85%. Top contributors: sindresorhus, zertosh, TrySound, steida, derhuerst, jonatanlinden, petemill, Richienb, KolinRobinson.