MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/demo/pagetosite/webpage/gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var watch = require('gulp-watch');
var notify = require('gulp-notify');


 
// Default error handler
var onError = function( err ) {
  console.log( 'An error occured:', err.message );
  this.emit('end');
}
// Different options for the Sass tasks

gulp.task('sass', function() {
    gulp.src('sass/style.scss')
        .pipe(sass().on('error', sass.logError))
        
        .pipe(gulp.dest('css'))
        .pipe(notify({ title: 'Sass', message: 'sass task complete'  }));
});

gulp.task( 'watch', function() { 
  gulp.watch( './sass/**/*.scss', ['sass'] );
} );

gulp.task( 'default', ['watch'], function() {

 // Does nothing in this task, just triggers the dependent 'watch'
} );;