Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mis-use of apostrophes #14

Merged
merged 3 commits into from
Nov 14, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![](https://badge.fury.io/js/grunt-css-url-embed.svg)  
![](https://david-dm.org/mihhail-lapushkin/grunt-css-url-embed.png)

> Embed URL's as base64 data URI's inside your stylesheets
> Embed URLs as base64 data URIs inside your stylesheets

There are lots of base64 embedding Grunt plugins out there, but pretty much all of them are already outdated and/or abandoned. This plugin aims to change that.

Expand All @@ -26,7 +26,7 @@ grunt.loadNpmTasks('grunt-css-url-embed');
## cssUrlEmbed task
Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.

Both image and font URL's are supported. Remote(http/https) URL's are supported as well.
Both image and font URLs are supported. Remote(http/https) URLs are supported as well.

### Options

Expand All @@ -36,7 +36,7 @@ Type: `String`

Default: `.` or the directory of `Gruntfile.js`

The base directory for URL's. Can be absolute or relative to the directory of your `Gruntfile.js`.
The base directory for URLs. Can be absolute or relative to the directory of your `Gruntfile.js`.

#### failOnMissingUrl

Expand All @@ -54,13 +54,13 @@ Type: `String`

Default: No restrictions

Skip URL's that are larger than the specified value.
Skip URLs that are larger than the specified value.

For example: `'5 MB'`, `'30 KB'`, `'300 B'`.

### Excluding URL's manually
### Excluding URLs manually

You can mark certain URL's to be skipped by this task using the `/* noembed */` comment.
You can mark certain URLs to be skipped by this task using the `/* noembed */` comment.

### Usage Examples

Expand Down Expand Up @@ -102,7 +102,7 @@ cssUrlEmbed: {
}
```

#### Exclude URL's by size
#### Exclude URLs by size
```js
cssUrlEmbed: {
encode: {
Expand All @@ -118,7 +118,7 @@ cssUrlEmbed: {
}
```

#### Excluding URL's manually
#### Excluding URLs manually
```css
.exclude-me {
background-image: url('exclude_me.png'); /* noembed */
Expand Down
6 changes: 3 additions & 3 deletions tasks/css-url-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ module.exports = function(grunt) {
}

if (isVerbose) {
grunt.log.writeln('Using "' + baseDir + '" as base directory for URL\'s');
grunt.log.writeln('Using "' + baseDir + '" as base directory for URLs');
}

var uniqueEmbeddableUrls = grunt.util._.uniq(embeddableUrls);

grunt.log.writeln(uniqueEmbeddableUrls.length + ' embeddable URL' + (uniqueEmbeddableUrls.length > 1 ? "'s" : '') + ' found');
grunt.log.writeln(uniqueEmbeddableUrls.length + ' embeddable URL' + (uniqueEmbeddableUrls.length > 1 ? 's' : '') + ' found');

var fileContentRef = { content: fileContent };

Expand All @@ -169,7 +169,7 @@ module.exports = function(grunt) {
}
}

grunt.registerMultiTask('cssUrlEmbed', "Embed URL's as base64 strings inside your stylesheets", function() {
grunt.registerMultiTask('cssUrlEmbed', "Embed URLs as base64 strings inside your stylesheets", function() {
var async = this.async();

var options = this.options({
Expand Down