Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // Sass
  2. gulp.task('sass', function() {
  3. gulp.src('./assets/scss/**/**/*.scss')
  4. .pipe(sass().on('error', function (err) {
  5. sass.logError(err);
  6. this.emit('end');
  7. }))
  8. .pipe(autoprefixer('last 2 versions'))
  9. .pipe(rename('theme.scss.liquid'))
  10. .pipe(replace('"{{', '{{'))
  11. .pipe(replace('}}"', '}}'))
  12. .pipe(gulp.dest('./assets/'));
  13. });
  14.  
  15. gulp.task('watch', function() {
  16. gulp.watch('./assets/scss/**/**/*.scss', gulp.series('sass'));
  17. });
  18.  
  19. [12:55:33] Starting 'watch'...
  20. [12:55:37] Starting 'sass'...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement