Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

sass preprocessor visual studio code

// Sass configuration
var gulp = require('gulp');
var sass = require('gulp-sass')(require('sass'));

gulp.task('sass', function(cb) {
  gulp
    .src('*.scss')
    .pipe(sass())
    .pipe(
      gulp.dest(function(f) {
        return f.base;
      })
    );
  cb();
});

gulp.task(
  'default',
  gulp.series('sass', function(cb) {
    gulp.watch('*.scss', gulp.series('sass'));
    cb();
  })
);
Source by code.visualstudio.com #
 
PREVIOUS NEXT
Tagged: #sass #preprocessor #visual #studio #code
ADD COMMENT
Topic
Name
4+8 =