Skip to content

Commit

Permalink
restore chmod when generating HTML file and set permissions correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 29, 2023
1 parent ed3ca85 commit a8a59cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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());
}));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a8a59cc

Please sign in to comment.