Skip to content

Commit

Permalink
Adds snippetOptions to browsersync config in watcher to fix new shopi…
Browse files Browse the repository at this point in the history
…fy issue
  • Loading branch information
bengodfrey committed Oct 3, 2019
1 parent ee75a1f commit ff4f71d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ class Watcher {
],
target
},
snippetOptions: {
rule: {
match: /<head[^>]*>/i,
fn: function(snippet, match) {
return match + snippet
}
}
},
open: (this.isLocalhost() ? 'internal' : 'external'),
host: config.get('local'),
https: this.getSSL(),
Expand Down

0 comments on commit ff4f71d

Please sign in to comment.