Miracles sometimes occur,

but one has to work terribly for them.

人生除了眼前的苟且,还有未知的 bug 和看不懂的 code

Scroll

# Vuepress-plugin-valine

Support popluar comment plugins in Vuepress, such as Valine.

# Features

  • Support Valine
  • Dynamic Import
  • Response router change and refresh automatic
  • User can use passage's $frontmatter

# Usage

# Install

With npm:

npm install --save vuepress-plugin-valine
1

With yarn:

yarn add vuepress-plugin-valine -D
1

With cnpm:

cnpm i --save vuepress-plugin-valine
1

# Use

The options is exactly the same as Valine configuration.

module.exports = {
  plugins: [
    [
      'vuepress-plugin-valine',
      {
        appId: 'Your own appId',
        appKey: 'Your own appKey'
      }
    ]
  ]
}
1
2
3
4
5
6
7
8
9
10
11

# demo

https://psrheartache.gitee.io (opens new window)