rework-plugin-url

WebJar for rework-plugin-url

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rework-plugin-url
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

rework-plugin-url
WebJar for rework-plugin-url
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/reworkcss/rework-plugin-url

Download rework-plugin-url

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/rework-plugin-url/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>rework-plugin-url</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/rework-plugin-url/
implementation 'org.webjars.npm:rework-plugin-url:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/rework-plugin-url/
implementation ("org.webjars.npm:rework-plugin-url:1.1.0")
'org.webjars.npm:rework-plugin-url:jar:1.1.0'
<dependency org="org.webjars.npm" name="rework-plugin-url" rev="1.1.0">
  <artifact name="rework-plugin-url" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='rework-plugin-url', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "rework-plugin-url" % "1.1.0"
[org.webjars.npm/rework-plugin-url "1.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : rework-plugin-function jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

rework-plugin-url

Build Status

Map url() calls. Replace all url()s using a given function.

Installation

$ npm install --save rework-plugin-url

Usage

var css = rework(read(css))
  .use(rework.url(function(url){
    return 'http://example.com' + url;
  }))
  .toString()
body {
  background: url(/images/bg.png);
}

yields:

body {
  background: url(http://example.com/images/bg.png);
}
org.webjars.npm

rework

Versions

Version
1.1.0