vuepress-plugin-dynamic-page

0.1.1 • Public • Published

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

/vuepress-plugin-dynamic-page/

    Package Sidebar

    Install

    npm i vuepress-plugin-dynamic-page

    Weekly Downloads

    8

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    13.2 kB

    Total Files

    15

    Last publish

    Collaborators

    • highcwu