No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [solved] quasar build resource use absolute path ?

    Help
    1
    2
    1408
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nattapong last edited by Nattapong

      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 ?

      1 Reply Last reply Reply Quote 0
      • N
        Nattapong last edited by

        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,

        1 Reply Last reply Reply Quote 0
        • First post
          Last post