Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
freshlogic committed Apr 7, 2014
1 parent a8d6c59 commit 5610ac9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@ Pass options to the middleware like this:
app.use(electricity.static(__dirname + '/public', options));
```

##CSS asset URL's
##CSS URI Values

Electricity will automatically rewrite paths in CSS to use absolute paths, hashes, and, if specified, a CDN hostname. For example, using the default options below, this in the public/styles directory:
Electricity will automatically rewrite URIs in CSS to use MD5 hashes (if a matching file is found). For example:

```css
background-image: url('../apple-touch-icon-precomposed.png');
background-image: url(/apple-touch-icon-precomposed.png);
```

becomes this to allow caching and avoid unnecessary redirects:

```css
background-image: url('/apple-touch-icon-precomposed-d131dd02c5e6eec4.png');
background-image: url(/apple-touch-icon-precomposed-d131dd02c5e6eec4.png);
```

##CDN Hostname
Expand Down

0 comments on commit 5610ac9

Please sign in to comment.