Skip to content

Instantly share code, notes, and snippets.

@VacantFuture
Forked from tterb/Gulpfile-pt2.js
Created September 25, 2020 17:37
Show Gist options
  • Select an option

  • Save VacantFuture/854165fbba9634b16298a461dd5bfdbf to your computer and use it in GitHub Desktop.

Select an option

Save VacantFuture/854165fbba9634b16298a461dd5bfdbf to your computer and use it in GitHub Desktop.
Gulpfile stylesheets
// Process styles, add vendor-prefixes, minify, then
// output the file to the appropriate location
gulp.task('build:styles:main', () => {
return sass(paths.sassFiles + '/main.scss', {
style: 'compressed',
trace: true,
loadPath: [paths.sassFiles]
}).pipe(postcss([autoprefixer({ browsers: ['last 2 versions']}), cssnano()]))
.pipe(gulp.dest(paths.jekyllCssFiles))
.pipe(gulp.dest(paths.siteCssFiles))
.pipe(browserSync.stream())
.on('error', gutil.log);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment