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

    Files to the root on build

    Help
    1
    2
    912
    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.
    • S
      smakinson last edited by

      I have a _redirects file that needs to end up in the root directory when build is run. Maybe I am missing it, but is there a place currently setup in Quasar to allow files to end up in the root? Or should I go ahead and modify the build scripts? …assuming this hurricane Irma doesn’t blow me away tonight 🙂

      1 Reply Last reply Reply Quote 0
      • S
        smakinson last edited by

        If I add:

        shell.cp(’-n’, ‘_redirects’, targetPath)

        to script.build.js under where it does the statics it does the trick, but I am curious if anyone else has the need to have 1 or more files end up in the root of dist after a build. This particular file is for use on Netlify so that it will serve up index.html for everything for a single page app. Would it be useful for Quasar to include some other folder, say something like “toroot” that had files that get copied there on build? If I’m just totally missing this workflow, let me know.

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