From 6e9eb2f8c81a6deb69df6ff34468d02da8e6d34f Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 23 Jun 2015 11:06:52 +0800 Subject: [PATCH] use gulp-chmod to set correct file permission --- gulpfile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index fe8b0b3..37b7803 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,6 @@ var del = require('del') , gulp = require('gulp') + , chmod = require('gulp-chmod') , concat = require('gulp-concat') , header = require('gulp-header') , jasmine = require('gulp-jasmine') @@ -100,6 +101,7 @@ gulp.task('unify', ['clean'], function() { exports: 'SVG' })) .pipe(header(headerLong, { pkg: pkg })) + .pipe(chmod(644)) .pipe(gulp.dest('dist')) .pipe(size({ showFiles: true, title: 'Full' })) }) @@ -115,6 +117,7 @@ gulp.task('minify', ['unify'], function() { .pipe(rename({ suffix:'.min' })) .pipe(size({ showFiles: true, title: 'Minified' })) .pipe(header(headerShort, { pkg: pkg })) + .pipe(chmod(644)) .pipe(gulp.dest('dist')) .pipe(size({ showFiles: true, gzip: true, title: 'Gzipped' })) }) -- 2.39.5