vuepress-plugin-dynamic-page
vuepress-plugin-dynamic-page
- Make your static vuepress site dynamic.
Warning: This plugin will make your site lose the SSR feature.
Features
This plugin help render the markdown files on the client side.
(New dynamic page does not use default markdown renderer plugins. This is the plugin next developing step.)
Install
yarn add -D vuepress-plugin-dynamic-page# OR npm install -D vuepress-plugin-dynamic-page
Usage
moduleexports = plugins: 'dynamic-page'
Passing Options
moduleexports = plugins: 'dynamic-page' cache: true cdn: vue: '<YOUR-VUE-CDN-URL>' dynamicCode: `require('@source/.vuepress/dynamic').default`
Options
cache
- Type:
Boolean
- Default:
true
Use the cached page if the path has been loaded once.
cdn
- Type:
Object
- Default:
cdn: { vue: null }
Add CDN using for some modules.
dynamicCode
- Type:
String
- Default:
"require('@source/.vuepress/dynamic').default"
Way to dynamically load your pages
Author
vuepress-plugin-dynamic-page © HighCWu, Released under the MIT License.
github.com/HighCWu · GitHub @HighCWu