mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 05:02:43 +00:00
Fix redundant build/ properly watch .less
This commit is contained in:
@@ -138,7 +138,9 @@ fs.emptyDirSync('./build');
|
|||||||
//In development set up a watch server and livereload
|
//In development set up a watch server and livereload
|
||||||
if(isDev){
|
if(isDev){
|
||||||
livereload('./build');
|
livereload('./build');
|
||||||
watchFile('./server.js', {
|
watchFile('./server.js', { // Rebuild when change detected to this file or any nested directory from here
|
||||||
watch : ['./client', './server', './themes'] // Watch additional folders if you want
|
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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user