postcss-rename-dependencies

1.0.1 • Public • Published

postcss-rename-dependencies

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Rename dependencies in CSS @import and url() statements.

Installation

npm install postcss-rename-dependencies

Usage

var postcss = require("postcss")
var rename = require("postcss-rename-dependencies")
 
var css = postcss()
  .use(rename({
    imports: {
      'a.css': 'b.css'
    },
    urls: {
      'image.png': 'image2.png'
    }
  }))
  .process(cssString)
  .css

Options

Options are:

  • imports - hash lookup of @import renames
  • urls - hash lookup of url() renames

Package Sidebar

Install

npm i postcss-rename-dependencies

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jongleberry