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

    How can I add custom static folder or additional 'static' like path

    Help
    2
    5
    1196
    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.
    • iamike
      iamike last edited by iamike

      example:
      currently, we have already got ‘statics’ folder,
      but some API website specifically request need put some verify file in root folder or specific path.

      屏幕快照 2019-05-06 上午10.54.09.png

      please advise what’s the best practice to make this. Appreciate in advance

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        If I understand what they are requesting, you simple make the directory they want /MP_verify_someHash.txtand add the file there and make sure it is public readable on your server. It has nothing to do with Quasar directly. This directory would be added within your build files, which you would need to transfer to a server anyway, right?

        Scott

        iamike 1 Reply Last reply Reply Quote 0
        • iamike
          iamike @s.molinari last edited by iamike

          @s-molinari Hi molinari, thank you for your reply, you are correct, it’s absolutely nothing to do with Quasar,
          I just want to have an additional different path, that would do the same job as ‘/statics’ path, can I doing this by extending the webpack config file? Thanks
          1557132018457.jpg

          1 Reply Last reply Reply Quote 0
          • iamike
            iamike last edited by

            currently I manually add this line at build out file index.js located in ssr/server/index.js
            屏幕快照 2019-05-06 下午5.09.55.png
            and it looks ok, so, in another word, can I set this customize config at quasar.con.js?
            屏幕快照 2019-05-06 下午5.12.43.png

            1 Reply Last reply Reply Quote 0
            • s.molinari
              s.molinari last edited by

              I believe so. Someone with more experience with making Webpack config changes, please chime in.

              Scott

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