Comments (6)
Tests disagrees:
Lines 121 to 122 in b263236
from gulp-size.
Is there any way that I can track down the issue, because this is what it is shown back to me...
from gulp-size.
Same issue here. The problem occurs when I'm trying to display prettySize in gulp-notify. In console everything works fine.
from gulp-size.
- Make sure you are using
gulp-size
and notgulp-filesize
package. (It was my mistake) - Make sure that
onLast
option is set totrue
. - Make sure you are using a
function
for message in notify options, and call fors.prettySize
inside of it. - Don't forget to call
.pipe(s)
Example:
.pipe(s)
.pipe(notify({
onLast: true,
message: function () {
return 'See <%= file.relative %> ' + s.prettySize;
}
}));
from gulp-size.
@vovayatsyuk Thank you. Works like a charm right now.
from gulp-size.
I have decided yesterday to rewrite my gulp tasks and change structure... I couldn't get notify to work at all, but size did work this time in console output.
So I tried to pipe gulp-size
and then gulp-notify
and then the gulp.dest
and in this order everything works as suppoused.
It did not work before at all, because I had size and notify right after destination.
from gulp-size.
Related Issues (20)
- A silent mode HOT 1
- Get the size value HOT 6
- 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
- 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.