rst*_*t85 7 javascript osx-mavericks gulp gulp-imagemin
我的图像文件夹中有一个符号链接指向包含第三方库提供的外部图像的另一个文件夹(由bower管理 - 得到爱javascript).作为构建过程的一部分,我按如下方式压缩所有图像:
gulp.task('images', function() {
return gulp.src('static/img/**/*')
.pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true }))
.pipe(gulp.dest('dist/img'))
});
Run Code Online (Sandbox Code Playgroud)
当gulp到达img文件夹中的符号链接文件夹时,它会返回
events.js:72
throw er; // Unhandled 'error' event
^
Error: EISDIR, read
Run Code Online (Sandbox Code Playgroud)
使用gulp-debug显示它在符号链接文件夹上包含.我在Mac OSX上,使用ln -s创建了符号链接.有任何想法吗?
| 归档时间: |
|
| 查看次数: |
3120 次 |
| 最近记录: |