Skip to content
Permalink
Browse files

Merge pull request #68 from jaclyntan/master

Changed dest to both static and public for dev purposes
  • Loading branch information...
crgeary committed Mar 14, 2019
2 parents 79a9ce9 + db3b7ba commit 03808b47f27f0b3f04341f14b0c27777bef85f3a
Showing with 2 additions and 1 deletion.
  1. +2 −1 gulpfile.babel.js
@@ -136,7 +136,8 @@ gulp.task('sass', () => {
.pipe($.autoprefixer(['ie >= 10', 'last 2 versions']))
.pipe($.if(isProduction, $.cssnano({ discardUnused: false, minifyFontValues: false })))
.pipe($.size({ gzip: true, showFiles: true }))
.pipe($.if(isProduction, gulp.dest('static/css'), gulp.dest('public/css'))) // if build process is not production, simply put the css in the public folder and don't rebuild hugo ( so the page doesn't auto reload)
.pipe(gulp.dest('static/css'))
.pipe(gulp.dest('public/css'))
.pipe(browserSync.stream())
})

0 comments on commit 03808b4

Please sign in to comment.
You can’t perform that action at this time.