gulp-imageisux
gulp-imageisux copied to clipboard
智图gulp插件
gulpfile.js里这么写的: gulp.task('imageisux', function() { return gulp.src(['images/*']) .pipe(imageisux('',false)); }); 执行之后终端这么提示的: Using gulpfile ~/repository/Circle/gulpfile.js Starting 'imageisux'... Finished 'imageisux' after 18 ms [error] circle2015.jpg cannot post to the server. 正常生成了dest目录,dest目录下也正常生成了图片,就是打不开 另外问一下怎么才能让生成的图片产生在本目录下,覆盖掉原来的图片?
RT

无法压缩文件
跑了下任务, 所有图片无一例外跳过了. 难道输入的图片还有要求? 我在web页面里测试是可以压缩的. 以下是任务输出: [15:28:56] [error] The data returned has error! The file name is:work_pic-05.jpg 求解
运行时报错 var gulp = require('gulp'); var imageisux = require('gulp-imageisux'); gulp.task('imageisux', function() { return gulp.src(['./book/*']) .pipe(imageisux('./dest/',true)); }); gulp.task('default', function(){ gulp.run('imageisux'); }); 错误: [error] Cannot post to the server