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

    publicPath for dev in V2

    Framework
    2
    2
    674
    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.
    • U
      Uneasy last edited by

      Since in V2 publicPath for dev is taken from build, how to set it up for dev ?

      devServer: {
          publicPath: '/'
        }
      

      that does not work, no matter what it takes it from build:

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

        this works:

        build: {
              vueRouterMode: 'history', // available values: 'hash', 'history'
              publicPath: process.env.NODE_ENV === 'development' ? '/' : '/productionPath',
        }
        

        but not in devServer

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