erorr with gulp & gulp-pug & gulp-sass

i install gulp & gulp-pug & gulp-sass

i am arabian

https://i.stack.imgur.com/k2bEg.png

'use strict';

const gulp = require('gulp'), pug = require('gulp-pug'), sass = require('gulp-sass');

pug Task

gulp.task('html', function () {
   return gulp.src('page/home.pug')
      .pipe(pug({
         pretty: true
      }))
      .pipe(gulp.dest('build'));
});

Css Task

gulp.task('css', function () {
   return gulp.src(["scss/style.scss"])
      .pipe(sass({
         outputStyle: 'compressed'
      }).on('error', sass.logError))
      .pipe(gulp.dest('build'))
});

Watch Tasks

gulp.task('watch', function () {
   gulp.watch('page/home.pug', ['html']);
   gulp.watch(["scss/style.scss"], ['css']);
});


Read more here: https://stackoverflow.com/questions/64960119/erorr-with-gulp-gulp-pug-gulp-sass

Content Attribution

This content was originally published by Mustafa Fathi at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: