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

    vue-cli 3 quasar plugin and default config

    Help
    4
    5
    1430
    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.
    • O
      ouaR last edited by

      I am using vue-cli 3 quasar plugin.

      How can I define default config for Quasar plugins in vue.config.js (for example, Notify) ?

      {
         pluginsOptions: {
             quasar: {
                 theme: 'mat',
                 ......?
             }
         }
      }
      1 Reply Last reply Reply Quote 0
      • M
        Max last edited by

        why did you use vue-cli in the first place?

        1 Reply Last reply Reply Quote 1
        • O
          ouaR last edited by

          @Max You are right, I will switch to quasar-cli, ty

          1 Reply Last reply Reply Quote 1
          • D
            droberts last edited by

            I have the same question. We have an existing vue-cli-3 project and we’re trying to use Quasar to enhance the user experience. We have it running just fine but there is no quasar.conf.js and I can’t find any documentation to configure it as a plugin option.

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

              @droberts
              i think it’s same as you setup other vue plugin. Vue.use(Quasar, { your options object here/quasar config }).
              maybe something like this:

              import Quasar, * as All from "quasar";
              
              Vue.use(Quasar, {
                components: All,
                directives: All,
                plugins: {
                  ...All
                }
              });
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post