Skip to content
Snippets Groups Projects
Commit acd5e2f6 authored by valzav's avatar valzav
Browse files

fix server file changes watcher/server restart

parent 34b46a58
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,8 @@ const startServer = () => {
if (parsedData === 'rs') return restartServer();
});
// Start watcher on server files
// and reload browser on change
watch(
path.join(__dirname, '../../tmp'),
(file) => !file.match('webpack-stats-dev.json') ? restartServer() : () => ({})
);
// Start watcher on server files and restart server on change
watch(path.join(__dirname, '../../server'), () => restartServer());
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment