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

How to use it as a postcss plugin? #145

Open
OptimusBlack opened this issue Feb 10, 2021 · 2 comments
Open

How to use it as a postcss plugin? #145

OptimusBlack opened this issue Feb 10, 2021 · 2 comments

Comments

@OptimusBlack
Copy link

OptimusBlack commented Feb 10, 2021

module.exports = {
  plugins: [
    require('postcss-import'),
    require('postcss-mixins'),
    require('postcss-modules-values'),
    require('postcss-inline-svg')({ removeFill: true }),
    require('postcss-nested'),
    require('postcss-preset-env'),
    require('postcss-custom-media'),
    require('autoprefixer'),
    require('postcss-variables-prefixer')({ prefix: 'my-prefix-' }),
  ],
}

This does not work in postcss.config.js

@ryuran
Copy link
Owner

ryuran commented Apr 28, 2021

Sorry for the delay.
It should exactly work like that.

When you say "This does not work in postcss.config.js" :

  • Do you have any error or warning ?
  • What is your css entry ?
  • What do you expect as css output ?

@ryuran
Copy link
Owner

ryuran commented Aug 4, 2022

Hello @OptimusBlack
More then one year later ^^, should i close this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants