0.1.1 • Published 5 years ago

vuepress-plugin-dynamic-page v0.1.1

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

vuepress-plugin-dynamic-page

NPM version NPM downloads

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

module.exports = {
  plugins: ['dynamic-page']
}

Passing Options

module.exports = {
  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

0.1.1

5 years ago

0.1.0

5 years ago