Created
August 19, 2016 07:59
-
-
Save Daniel-Wiedemann/cd58b141a7802cff555fd78681f678ce to your computer and use it in GitHub Desktop.
Speed up browserSync with watcher after SASS compiling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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