0.1.0 • Published 9 years ago

rework-plugin-import-url v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

rework-plugin-import-url

Replace URLs in CSS @import rules using a given function.

Install

  1. Install the plugin with the following command:

    npm install rework-plugin-import-url

Usage

var rework = require('rework');
var reworkImportUrl = require('rework-plugin-import-url');

var css = rework(originalCss)
  .use(reworkImportUrl(function(url){
    return 'http://example.com' + url;
  }))
  .toString()

License

MIT © Dmitriy Simushev