ryuran/postcss-variables-prefixer

How to use it as a postcss plugin?

Opened this issue · 2 comments

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

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 ?

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