安装gulp-hexsquare插件首先执行以下命令:
$ npm install --save-dev gulp-hexsquare
用法:
var gulp = require('gulp');
var hexsquare = require('gulp-hexsquare');
gulp.task('default', function() {
return gulp.src('src/file.ext')
.pipe(hexsquare({ size: { width: 72, height: 72 } }));
});
暂无评论