Gulp watch not watching?
up vote
0
down vote
favorite
I run gulp in the cmd line on Windows. When I edit my SCSS files, the gulp watch doesn't fire unless I make the cmd window active. Is this normal behavior?
This is my gulpfile:
// grab our packages
var gulp = require('gulp'),
sass = require('gulp-ruby-sass')
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename');;
// define the default task and add the watch task to it
gulp.task('default', ['watch']);
gulp.task('build-css', function() {
return sass('src/scss/**/*.scss', {
style: 'expanded'
})
.pipe(gulp.dest('public/css/'))
.pipe(rename({suffix: '.min'}))
.pipe(minifycss())
.pipe(gulp.dest('public/css'));
});
// configure which files to watch and what tasks to use on file changes
gulp.task('watch', function() {
gulp.watch('src/scss/**/*.scss', ['build-css']);
});
gulp gulp-watch
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I run gulp in the cmd line on Windows. When I edit my SCSS files, the gulp watch doesn't fire unless I make the cmd window active. Is this normal behavior?
This is my gulpfile:
// grab our packages
var gulp = require('gulp'),
sass = require('gulp-ruby-sass')
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename');;
// define the default task and add the watch task to it
gulp.task('default', ['watch']);
gulp.task('build-css', function() {
return sass('src/scss/**/*.scss', {
style: 'expanded'
})
.pipe(gulp.dest('public/css/'))
.pipe(rename({suffix: '.min'}))
.pipe(minifycss())
.pipe(gulp.dest('public/css'));
});
// configure which files to watch and what tasks to use on file changes
gulp.task('watch', function() {
gulp.watch('src/scss/**/*.scss', ['build-css']);
});
gulp gulp-watch
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I run gulp in the cmd line on Windows. When I edit my SCSS files, the gulp watch doesn't fire unless I make the cmd window active. Is this normal behavior?
This is my gulpfile:
// grab our packages
var gulp = require('gulp'),
sass = require('gulp-ruby-sass')
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename');;
// define the default task and add the watch task to it
gulp.task('default', ['watch']);
gulp.task('build-css', function() {
return sass('src/scss/**/*.scss', {
style: 'expanded'
})
.pipe(gulp.dest('public/css/'))
.pipe(rename({suffix: '.min'}))
.pipe(minifycss())
.pipe(gulp.dest('public/css'));
});
// configure which files to watch and what tasks to use on file changes
gulp.task('watch', function() {
gulp.watch('src/scss/**/*.scss', ['build-css']);
});
gulp gulp-watch
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I run gulp in the cmd line on Windows. When I edit my SCSS files, the gulp watch doesn't fire unless I make the cmd window active. Is this normal behavior?
This is my gulpfile:
// grab our packages
var gulp = require('gulp'),
sass = require('gulp-ruby-sass')
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename');;
// define the default task and add the watch task to it
gulp.task('default', ['watch']);
gulp.task('build-css', function() {
return sass('src/scss/**/*.scss', {
style: 'expanded'
})
.pipe(gulp.dest('public/css/'))
.pipe(rename({suffix: '.min'}))
.pipe(minifycss())
.pipe(gulp.dest('public/css'));
});
// configure which files to watch and what tasks to use on file changes
gulp.task('watch', function() {
gulp.watch('src/scss/**/*.scss', ['build-css']);
});
gulp gulp-watch
gulp gulp-watch
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 min ago
nate
1
1
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
nate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
nate is a new contributor. Be nice, and check out our Code of Conduct.
draft saved
draft discarded
nate is a new contributor. Be nice, and check out our Code of Conduct.
nate is a new contributor. Be nice, and check out our Code of Conduct.
nate is a new contributor. Be nice, and check out our Code of Conduct.
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266070%2fgulp-watch-not-watching%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password