Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit c84dd70

Browse files
committed
Remove watching file from serve command. Fixes #12
1 parent fc27eae commit c84dd70

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

bin/serve.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function serve(config) {
2222
}
2323

2424
try {
25-
const sourceDir = path.resolve(config.paths.source.root);
2625
const publicDir = path.resolve(config.paths.public.root);
2726

2827
// The browser-sync
@@ -51,22 +50,6 @@ function serve(config) {
5150
}
5251
};
5352

54-
/**
55-
* @func reloadCSS
56-
* @desc Calls browser-sync's reload method to tell browsers to refresh their page's CSS
57-
*/
58-
const reloadCSS = function () {
59-
bs.reload(publicDir + '**/*.css');
60-
};
61-
62-
// Watch the source dir for changes and reload CSS
63-
bs
64-
.watch(sourceDir + '**/*', {
65-
ignoreInitial: true,
66-
ignored: '*.html'
67-
})
68-
.on('change', reloadCSS);
69-
7053
// Register plugins
7154
bs.use(htmlInjector, {
7255
files: [publicDir + '/index.html', publicDir + '../styleguide/styleguide.html']

0 commit comments

Comments
 (0)