Vuepress 自定义主题和 postcss

Vuepress custom theme and postcss

我做了一个自定义的 vuepress 主题并发布在 npm 上。 然后我在一个vuepress项目中导入它,主题就出现了。

问题:主题需要的postcss插件没有处理。

postcss 插件位于主题 package.json 的 dependencies 和主题 index.js 中:

module.exports = {
    postcss: {
      plugins: [
        require('postcss-normalize'),
        require('postcss-preset-env')({
          stage: 0
        })
      ]
    }
  }

它不起作用。

在vuepress主题中注册postcss插件的正确方法是什么?

谢谢

根据 this issue,它看起来像一个错误