ryuran / postcss-variables-prefixer

PostCSS plugin to add a prefix to all css custom properties.
MIT License
8 stars 2 forks source link

How to use it as a postcss plugin? #145

Open OptimusBlack opened 3 years ago

OptimusBlack commented 3 years ago
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 commented 3 years ago

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

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

ryuran commented 2 years ago

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