Allowing SPA to be portable (publicPath on the fly on client side)

  • Is there a way to inject a funtion into quasar app, that runs as first in the entry-point and sets the value of webpack_public_path as described in docu for webpack 16.4 ?

    I have seen postings in quasar-form that this is dangerous for some build modes and there are good reasons to force everything to the root “/”. But I think it should at least work for ( && ctx.modeName === ‘spa’). Otherwise one had to rebuild whenever the server layout changes, or when running on different server-urls.
    I dont use vueRouterMode: ‘history’