diff --git a/scripts/buildHomebrew.js b/scripts/buildHomebrew.js index 96ce3fded..f5bb0b024 100644 --- a/scripts/buildHomebrew.js +++ b/scripts/buildHomebrew.js @@ -138,7 +138,9 @@ fs.emptyDirSync('./build'); //In development set up a watch server and livereload if(isDev){ livereload('./build'); - watchFile('./server.js', { - watch : ['./client', './server', './themes'] // Watch additional folders if you want + watchFile('./server.js', { // Rebuild when change detected to this file or any nested directory from here + ignore : ['./build'], // Ignore ./build or it will rebuild again + ext : 'less', // Other extensions to watch (only .js/.json/.jsx by default) + //watch: ['./client', './server', './themes'], // Watch additional folders if you want }); }