Skip to content

Instantly share code, notes, and snippets.

@Daniel-Wiedemann
Created August 19, 2016 07:59
Show Gist options
  • Save Daniel-Wiedemann/cd58b141a7802cff555fd78681f678ce to your computer and use it in GitHub Desktop.
Save Daniel-Wiedemann/cd58b141a7802cff555fd78681f678ce to your computer and use it in GitHub Desktop.
Speed up browserSync with watcher after SASS compiling
// If the browserreload with browserSync and watch after SASS compiling is to slow,
// following solutions could help.
// Use one or more of the following options
// Options:
// spawn: false
// interrupt: true
// persistent: true
// interval: 5007
grunt.initConfig({
watch: {
sass: {
files: ['<%= path %>sass/*.scss', '<%= path %>sass/components/*.scss'],
tasks: ['sass:dev'],
options: {
// speed up watching
spawn: false
// ,
// interrupt: true,
// persistent: true,
// interval: 5007
}
},
html: {
files: ['<%= path %>*.html']
},
js: {
files: ['<%= path %>js/*.js']
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment