diff --git a/gulpfile.js b/gulpfile.js index 3a59a79..28c7541 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,6 +4,7 @@ var pkg = require('./package.json'), autoprefixer = require('gulp-autoprefixer'), browserify = require('browserify'), buffer = require('vinyl-buffer'), + chmod = require('gulp-chmod'), connect = require('gulp-connect'), csso = require('gulp-csso'), del = require('del'), @@ -48,6 +49,7 @@ gulp.task('html', gulp.series('clean:html', function _html() { .pipe(isDist ? through() : plumber()) .pipe(pug({ pretty: ' ' })) .pipe(rename('index.html')) + .pipe(chmod(0o644)) .pipe(gulp.dest('public')) .pipe(connect.reload()); })); diff --git a/package.json b/package.json index 7ab3f80..6dac111 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "gh-pages": "~6.0", "gulp": "~4.0", "gulp-autoprefixer": "~8.0", + "gulp-chmod": "~3.1", "gulp-connect": "~5.7", "gulp-csso": "~4.0", "gulp-plumber": "~1.2",