Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vuepress custom theme and postcss plugins #2155

Open
francoisromain opened this issue Jan 27, 2020 · 2 comments
Open

vuepress custom theme and postcss plugins #2155

francoisromain opened this issue Jan 27, 2020 · 2 comments
Labels
topic: webpack Relates to Webpack type: bug Something isn't working

Comments

@francoisromain
Copy link

francoisromain commented Jan 27, 2020

  • [X ] I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

  1. make a custom vuepress theme using postcss plugins and publish it on npm.

The postcss plugins are :

  • in the dependencies of the theme's package.json
  • in the theme's index.js:
module.exports = {
    postcss: {
      plugins: [
        require('postcss-normalize'),
        require('postcss-preset-env')({ stage: 0 })
      ]
    }
  }
  1. import the custom theme in a vuepress project: the theme shows up.

What is expected?

The postcss plugins required by the theme should be processed.

What is actually happening?

The postcss plugins required by the theme are not processed.

Other relevant information

  • Output of npx vuepress info in my VuePress project:
npx vuepress info

Environment Info:

  System:
    OS: macOS High Sierra 10.13.6
    CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
  Binaries:
    Node: 13.6.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.13.4 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 72.0.2
    Safari: 13.0.4
  npmPackages:
    @vuepress/core:  1.2.0 
    @vuepress/theme-default:  1.2.0 
    vuepress: ^1.2.0 => 1.2.0 
  npmGlobalPackages:
    vuepress: Not Found
@bencodezen
Copy link
Member

bencodezen commented Jan 29, 2020

Hey @francoisromain. Thanks for filing this issue! Could you send us the theme you're using so we can try to replicate the issue you're having?

@bencodezen bencodezen added the needs reproduction Waiting for a reproduction link (codepen, code sandbox, GH repos) label Jan 29, 2020
@francoisromain
Copy link
Author

Hello @bencodezen here is the theme: https://github.com/francoisromain/vuepress-theme-system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: webpack Relates to Webpack type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants