温馨提示:本文翻译自stackoverflow.com,查看原文请点击:vue.js - Vuepress custom theme and postcss
vue.js vuepress

vue.js - Vuepress自定义主题和Postcss

发布于 2020-05-03 16:49:31

我制作了一个自定义的Vuepress主题并将其发布在npm上。然后,将其导入vuepress项目中,并显示主题。

问题:主题所需的postcss插件未处理。

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

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

这没用。

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

谢谢

查看更多

提问者
François Romain
被浏览
6
François Romain 2020-02-14 19:59

根据此问题,它看起来像一个错误