-
-
Save VacantFuture/854165fbba9634b16298a461dd5bfdbf to your computer and use it in GitHub Desktop.
Gulpfile stylesheets
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
| // 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