Здравствуйте. ПРоблема такая: при компиляции scss файлв галпом вылается ошибка
events.js:85
throw er; // Unhandled 'error' event
^
Error: prj\input\sass\styles.scss
undefined
вот содержимое галп-файла
var gulp = require('gulp'),
sass = require('gulp-sass'),
path = require('path'),
minifyCss = require('gulp-minify-css'),
rename = require("gulp-rename"),
autoprefixer = require('gulp-autoprefixer'),
bower = require('gulp-bower'),
connect = require('gulp-connect'),
mainBowerFiles = require('gulp-main-bower-files'),
wiredep = require('wiredep').stream,
jade = require('gulp-jade');
/**************************connect********************/
gulp.task('connect', function() {
connect.server({
root: 'prj',
livereload: true
});
});
/**************************bower******************/
gulp.task('mainfiles', function() {
return gulp.src('./bower.json')
.pipe(mainBowerFiles())
.pipe(gulp.dest('prj/output/js/bower'));
});
/**************************less**********************/
gulp.task('sass', function () {
return gulp.src('prj/input/sass/**/*.scss')
.pipe(sass({
noCache : true,
style : "compact"
}))
.pipe(gulp.dest('prj/output/css'))
});
/****************************scripts******************/
gulp.task('js', function () {
return gulp.src('prj/input/js/*.js')
.pipe(gulp.dest('prj/output/js'))
.pipe(connect.reload());
});
/**
* jade
*/
gulp.task('jade', function(){
return gulp.src('prj/input/**/index.jade')
.pipe(jade({pretty: true}))
.pipe(wiredep({
directory: './bower_components',
bowerJson: require('./bower.json')
}))
.pipe(gulp.dest('prj/output/html'))
.pipe(connect.reload());
});
/***************************watch*********************/
gulp.task('watch', function() {
gulp.watch('prj/input/sass/*.scss', ['sass'])
gulp.watch('prj/input/js/*.js', ['js'])
gulp.watch('prj/input/**/*.jade',['jade']);
});
gulp.task('default',['connect','sass','watch','js','jade']);