Skip to content

Instantly share code, notes, and snippets.

@bartcis
Created June 21, 2019 16:20
Show Gist options
  • Select an option

  • Save bartcis/16f29d32565f8462c2c81144f2c3ad4b to your computer and use it in GitHub Desktop.

Select an option

Save bartcis/16f29d32565f8462c2c81144f2c3ad4b to your computer and use it in GitHub Desktop.
Example CSS task in Gulp 4
function cssTask(done) {
src(config.app.scss)
.pipe(sass({ outputStyle: 'expanded' }))
.pipe(rename({ suffix: '.bundle' }))
.pipe(postcss([autoprefixer(), cssnano()]))
.pipe(dest(config.dist.base))
done();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment