commit de4d6825012f7174d63923b482c197d282f52a30 parent 1bbe7fc71148d99896c3d5e43e3a81769dbae55f Author: Konstantin Tarkus <hello@tarkus.me> Date: Sat, 19 Dec 2015 22:44:41 +0300 Fix a potential issue in tools/start.js Fixes #357 Diffstat:
| M | tools/start.js | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/start.js b/tools/start.js @@ -85,14 +85,12 @@ async function start() { // including full page reloads if HMR won't work files: ['build/content/**/*.*'], }, resolve); - handleServerBundleComplete = () => runServer(); + handleServerBundleComplete = runServer; } }); }; - bundler.compilers - .find(x => x.options.target === 'node') - .plugin('done', () => handleServerBundleComplete()); + bundler.plugin('done', () => handleServerBundleComplete()); }); }