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

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -