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 to configure alternate web browser for devServer

    Framework
    4
    5
    1365
    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
      steve last edited by

      I’ve read up on webpack and tried to change the devServer open value to launch Google Chrome (not system default), however I cannot get it to work. Has anyone configured quasar.conf.js webpack to launch another browser client?

       devServer: {
        // https: true,
        port: 8888,
        open: 'Google Chrome' // 'chrome' ... opens browser window automatically
      },
      

      From webpack
      https://webpack.js.org/configuration/dev-server/#devserver-open
      https://github.com/webpack/webpack-dev-server/issues/753

      A 1 Reply Last reply Reply Quote 0
      • S
        sjmcdowall last edited by

        Any luck on this?? I am looking for the same thing…

        1 Reply Last reply Reply Quote 0
        • D
          devmime last edited by

          Which OS you have? On Mac it’s work.

          “The browser application name is platform dependent. Don’t hard code it in reusable modules. For example, ‘Chrome’ is ‘Google Chrome’ on macOS, ‘google-chrome’ on Linux and ‘chrome’ on Windows.” Source: https://webpack.js.org/configuration/dev-server/#devserver-open

          S 1 Reply Last reply Reply Quote 0
          • S
            sjmcdowall @devmime last edited by

            @devmime – Well that’s a bit embarrassing – had the wrong name … Switched it to 'Google Chrome" on my Mac OS X and sure enough – works like a champ! Thanks!

            1 Reply Last reply Reply Quote 0
            • A
              Ammamon @steve last edited by

              @steve

              devServer: {
                https: false,
                port: 8080,
                open: 'chrome' // opens browser window automatically
              },
              

              For automatically opening Google Chrome

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