Build automation process - "onFail" hook



  • Hello everyone,

    Is there an ‘onFail’ hook or callback for the quasar build process?
    Or a way to access webpack’s Compiler Hooks (like ‘failed’ for example) from the quasar.conf?

    More specifically I’m looking for a way to automaticaly restart the build process (SPA) when the ‘PrerenderSpaPlugin’ fails to render all routes (this happens sometimes, it seems almost randomly).

    I’m not sure if webpack’s ‘failed’ would work for me but it seems worth a try (The PrerenderSpaPlugin seems to be executed after the “afterEmit” lifecycle hook).

    Is there a better way to do this?

    Thank you!


Log in to reply