Total size project
brendan8c opened this issue · comments
Artem Guskov commented
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)
const build = 'build/'
const config_size = {
showTotal: true,
pretty: true,
title: 'All project: '
}
function allSize() {
return src(build + '**/*.*')
.pipe(size(config_size))
}
exports.allSize = allSize // gulp allSize
In my build, this works great!
Sindre Sorhus commented
Is this a question or statement? It's not really clear what you're trying to say.
Sindre Sorhus commented
The total size of the project can be calculated without using "gulp-notify"..
Nowhere in the docs does it say you have to use gulp-notify
.
Artem Guskov commented
Sindre Sorhus commented
It's just an example, per the "for example" wording.