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

    Rename src/ and src-electron/

    Help
    1
    1
    194
    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.
    • P
      Platycore last edited by

      Hi!

      I am hoping to change the root directory structure for an electron app:
      I’d like src/ to become src-ui/ and I’d like src-electron/ to become src-server/.

      I have updated quasar.conf.js to this:
      sourceFiles: {
      rootComponent: ‘src-ui/App.vue’,
      router: ‘src-ui/router’,
      store: ‘src-ui/store’,
      indexHtmlTemplate: ‘src-ui/index.template.html’,
      electronMainDev: ‘src-server/main-process/electron-main.dev.js’,
      electronMainProd: ‘src-server/main-process/electron-main.js’
      },

      I had to change several import(‘pages/…’) to import (’…/page/…’) in router.js

      But now every time the app starts up it says: ‘app:mode Quasar ELECTRON is missing. Installing it’ and regenerates skeleton of src-electron. Some code probably triggers on existence of ‘src-electron’ somewhere.

      So there probably has to be some global configuration somewhere to simply rename these things, but I can’t find it anywhere in documentation.

      So: what is the easy way to change ‘src’ and ‘src-electron’ to different directory names?

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