0.0.3 • Published 7 years ago

postcss-replacer v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

PostCSS Replace Build Status

PostCSS plugin to replace content with mappers

// input content 
.foo {
  src: url(abc);
  src: url(123414)
}
// in your postcss config file, for example .postcssrc.js
module.exports = {
  plugins: {
    "postcss-replacer": {
      mappers: [
        {
          source: 'abc',
          target: 'def'
        },
        {
          source: /\d+/,
          target: 'xyz'
        }
      ]
    }
  }
}
.foo {
  src: url(def);
  src: url(xyz);
}

Usage

postcss([ require('postcss-replace') ])

See PostCSS docs for examples for your environment.

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago