[solved] quasar build resource use absolute path ?



  • Hi,
    I use quasar-cli to build my app with command “quasar build”.
    I found that in version 0.14.9, all reference to js files are something like, <script type=text/javascript src=js/app.js></script>
    Now, with version 0.15.6, all reference to js files are something like, <script type=text/javascript src=/js/manifest.4f2a9e0ef74551dd5c27.js>
    How can I make it relative path in 0.15.6 ?



  • Hi, solved by modify quasar.conf.js on this section.

    1. comment vueRouterMode so it back to use hash instead of HTML5 history mode. I’m not sure if this will cause any issue with Quasar thought… since Quasar config enable this by default.

    2. add publicPath: ‘.’

      build: {
      scopeHoisting: true,
      // vueRouterMode: ‘history’,
      publicPath: ‘.’,
      // gzip: true,
      // analyze: true,
      // extractCSS: false,
      // useNotifier: false,