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

    Run code before plugins get loaded

    Help
    2
    3
    35
    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.
    • L
      larvanitis last edited by

      Hi,

      I need to execute some code before the plugins are loaded - even better if I could do it even before anything Quasar related.

      According to https://quasar.dev/quasar-cli/boot-files#Quasar-App-Flow

      1. Quasar is initialized (components, directives, plugins, Quasar i18n, Quasar icon sets)
      2. Quasar Extras get imported (Roboto font – if used, icons, animations, …)
      3. Quasar CSS & your app’s global CSS are imported
      4. App.vue is loaded (not yet being used)
      5. Store is imported (if using Vuex Store in src/store)
      6. Boot files are imported

      I’d like to run before 1., which rules out boot files.

      1 Reply Last reply Reply Quote 0
      • Allan-EN-GB
        Allan-EN-GB Admin last edited by

        Can you explain a little more about what you’re trying to achieve?

        1 Reply Last reply Reply Quote 0
        • L
          larvanitis last edited by

          I have to wrap some plugin elements (.q-notifications, .q-tooltip etc.) in a custom div. I can do it in a mutation observer but unless I set it up before the plugins, some elements (at least .q-notifications) have to be handled manually, since they are already added to the dom.

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