Static GitHub Issues

[855] function hook to cleanup after generate is done

prev: Problem to implement vue-simplemde
next: Failed to compile (nuxt@1.0.0-alpha4)

Currently when running nuxt generate it can happen that nuxt freezes at end of the process because open websockets exist. For example when using Firebase, the websocket won't ever stop. Therefore nuxt just prints [nuxt] Generate done and does not stop afterwards. I attached a minimal hanging example: Nuxt_Generate_Hung.zip

I wish there would be a callback when the generation is done where I can cleanup stuff and call firebase.database().goOffline() for my example.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c732">#c732</a>)</em></sub></div>