Pathpida with Nuxt.js

TypeScript friendly internal link client for Nuxt.js.
#
Features- Type safety. Automatically generate type definition files for manipulating internal links in Nuxt.js.
- Zero configration. No configuration required, can be used immediately after installation.
- Zero runtime. Lightweight because runtime code is not included in the bundle.
#
Install#
Setuppackage.json
nuxt.config.js
or nuxt.config.ts
#
Usagepages/index.vue
#
Define querypages/post/create.vue
pages/post/_pid.vue
pages/index.vue
⚠️ Query/OptionalQuery type must not contain any reference types.
This is because due to typescript restrictions, types exported from .vue
files cannot be imported in plugins/$path.ts
.
If you want to import types from other files, please use import types with absolute paths.
types/users.ts
pages/post/create.vue
#
Generate static files pathpackage.json
pages/index.vue