Closed wjx19931104 closed 1 year ago
我也遇到这个问题了
我也遇到这个问题了,
俺也一样
"vuepress": "^2.0.0-beta.49", "vuepress-plugin-demoblock-plus": "^1.6.0"
引入方式
const demoblockPlugin = require('vuepress-plugin-demoblock-plus')
plugins: [
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
}),
demoblockPlugin({
customClass: 'demoblock-custom',
// theme: 'github-light',
cssPreprocessor: 'less',
scriptReplaces: [
{ searchValue: /const ({ defineComponent as _defineComponent }) = Vue/g,
replaceValue: 'const { defineComponent: _defineComponent } = Vue'
}
]
})
],
试例仓库 https://github.com/wuyifan0203/vuepress-interview.git dev分支
不支持最新版,是由于vuepress-next作者更新了底层的markdown支持。
v2正在使用TypeScript重新开发中,支持最新版,近期发布。
v2版本已发布
vuepress-webpack@2.0.0-beta.48版本正常 控制台无报错等信息