Skip to content

How to use the routesFolder option #300

Closed Answered by posva
tongcheong asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on what you use, for Vite, it's

// vite.config.ts
import VueRouter from 'unplugin-vue-router/vite'

export default defineConfig({
  plugins: [
    VueRouter({
      /* options */
    }),
    // ⚠️ Vue must be placed after VueRouter()
    Vue(),
  ],
})

You have the other examples in the readme, collapsed.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tongcheong
Comment options

@posva
Comment options

Answer selected by posva
@tongcheong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants