Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

fs-router #6

Closed
egoist opened this issue Mar 22, 2017 · 1 comment
Closed

fs-router #6

egoist opened this issue Mar 22, 2017 · 1 comment

Comments

@egoist
Copy link
Collaborator

egoist commented Mar 22, 2017

Similar to Next.js/Nuxt.js 's pages structure:

in src/index.js do:

import createRouter from '@fs-router'

const router = createRouter({
  // optional options...
})

export default { router }

Then this will automatically map ./pages/**/*.{vue,js} to router routes with code-split support.

@egoist egoist mentioned this issue Mar 22, 2017
@egoist
Copy link
Collaborator Author

egoist commented Mar 22, 2017

@egoist egoist closed this as completed Mar 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant