Comments (6)
Do you want the size of individual files or total?
from gulp-size.
The total value.
I compile sass, concat js files and have a notification after it is done. So, I wanted to add a string with the size of the output file to the notification in order not to open the terminal. Is it possible somehow?
from gulp-size.
thanks for fast help, can you please confirm it is working
my gulp
gulp.task('test', function () {
var s = size();
gulp.src('test.js')
.pipe(s)
.pipe(gulp.dest('dist'))
.pipe(notify({
onLast: true,
message: 'Total file size ' + s.prettySize
}));
});
and the output is undefined
Using gulpfile ~/Sites/test/gulpfile.js
Starting 'test'...
Finished 'test' after 24 ms
all files 34 B
gulp-notify: [Gulp notification] Total file size undefined
gulp-notify 2.1.0
gulp-size 1.2.0
from gulp-size.
Sorry, did a mistake in the example. Fixed in 6db66e9.
from gulp-size.
Yes, works like a charm now.
The response and the fixes are blazingly fast, you is awesome, thank you for your work!
from gulp-size.
What a coincidence, googled this issue and after almost 1 year this seems to be an issue again.
size().size
=> undefined
size().prettySize
=> undefined
var s = size();
s.size
=> undefined
s.prettySize
=> undefined
from gulp-size.
Related Issues (20)
- A silent mode HOT 1
- It prints "all files 0 B" when no file in stream HOT 3
- Don't work with browserify HOT 2
- Why is title automatically quoted? HOT 4
- Add Changelog HOT 1
- showFiles: true unreadable on putty ? HOT 1
- title as a second parameter HOT 2
- Report filesize change HOT 1
- Unable to retrieve size of total files for gulp-notify / size().prettySize, size().size HOT 6
- Error when using `{gzip: true}` HOT 2
- Print nothing when more than 16 files. HOT 1
- Don't log output. HOT 4
- gziped and non gziped log HOT 8
- Replace deprecated dependency gulp-util
- Why are some files lost when I use your plugin? HOT 1
- support for browserify HOT 1
- gulp-util removal request HOT 1
- full file path HOT 2
- Total size project HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-size.