Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
fix: always reload when the file is not injectable
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Oct 8, 2014
1 parent 0883d38 commit 5cf1dcf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.0.5 (08 October 2014)
* Always reload when the file is not injectable (html files for example)

# 0.0.4 (30 September 2014)
* Disable the plugin when building (enable only for watch)

Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ BrowserSync.prototype.onCompile = function(changedFiles) {
}
}

browserSync.reload(files);
// give files array when available
browserSync.reload(files.length > 0 ? files : null);
};

// file to include
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-sync-brunch",
"version": "0.0.4",
"version": "0.0.5",
"description": "Adds browser-sync support to brunch for automatic browser reloading and much more",
"author": "Olivier Combe <[email protected]>",
"homepage": "https://github.com/ocombe/browser-sync-brunch",
Expand Down

0 comments on commit 5cf1dcf

Please sign in to comment.