Package Exports
- vuepress-plugin-waline
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vuepress-plugin-waline) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vuepress-plugin-waline
简介
vuepress-plugin-waline 是一个基于 Vuepress 2.x 的插件,它可以帮助你更快的接入 Waline 评论系统。
安装
npm install -D vuepress-plugin-waline
yarn add -D vuepress-plugin-waline用法
.vuepress/config.js文件中使用插件
plugins: [
['vuepress-plugin-waline', {
serverURL: 'https://waline.vercel.app'
}]
]vuepress-vite
如果出现 @waline/client/dist/Waline.min.js does not provide an export named default 的错误,这是因为 @waline/client 包是umd格式的,对vite支持不友好,需要在vite打包配置中手动预加载此包。
在 .vuepress/config.js 文件中添加以下内容:
bundlerConfig: {
viteOptions: {
optimizeDeps: {
include: ['@waline/client']
}
}
}