Skip to content
Permalink
Browse files

Changed dest to both static and public for dev purposes

Forgot this too
THIS SHOULD BE THE LAST UPDATE. MAYBE.
  • Loading branch information...
jaclyntan committed Mar 14, 2019
1 parent 8f02c85 commit db3b7ba44392956c79179d6038e691ffa2f55b63
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 db3b7ba

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