Created
June 21, 2019 16:20
-
-
Save bartcis/16f29d32565f8462c2c81144f2c3ad4b to your computer and use it in GitHub Desktop.
Example CSS task in Gulp 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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