Gulp task output missing file -


i cant create output.css file in root directory via gulp .. want output compressed 1 file stylesheet, gulp doesnt work them.

i have structure       - bower_components           - bootstrap             - sass               - custom.scss       - output.css 

my gulp file:

var gulp             = require('gulp'),     sass             = require('gulp-sass'),     watch            = require('gulp-watch'); var concat           = require('gulp-concat');   gulp.task('scss', function () {     return gulp.src('bower_components/bootstrap/scss/_custom.scss')         .pipe(sass({outputstyle: 'compressed'}))         .pipe(concat('output.css'))         .pipe(gulp.dest('./')); });  gulp.task('watch', function () {      gulp.watch('bower_components/bootstrap/scss/_custom.scss', ['scss']);  });  gulp.task('default', ['watch']); 

you forgot include 'scss' task in default task.

gulp.task('default', ['scss', 'watch']);


Comments

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -