【发布时间】:2020-10-09 13:37:12
【问题描述】:
我已经制作了我的自定义主题并使用配置 (index.js) 扩展了基本主题:
extend: '@vuepress/theme-default'
我无法完成的是禁用插件并使用 (config.js) 覆盖默认样式:
module.exports = {
// Disabling plugins we received from parent theme
plugins: {
'@vuepress/active-header-links': false,
'@vuepress/search': false,
'@vuepress/plugin-nprogress': false,
},
...
和(index.styl):
// For example
body
background-color: red !important;
当我使用npm run dev 运行开发服务器时,甚至在我使用npm run build 构建网站之后,结果都是一样的。旧主题的插件和样式保留。
当我检查获取的 CSS 文件时,我什至可以看到它们。
我已阅读文档,但不明白这是一个问题,还是我有什么问题。
【问题讨论】:
标签: vuepress