rework-plugin-import-url
v0.1.0
Published
A rework plugin for replacing URLs in CSS @import rules.
Downloads
2
Readme
rework-plugin-import-url
Replace URLs in CSS @import rules using a given function.
Install
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