From ba6c6200ae388c8cc389766eccd68860c1af70ad Mon Sep 17 00:00:00 2001 From: James Forrester Date: Fri, 14 Nov 2014 09:13:29 -0800 Subject: [PATCH 1/2] Fix mis-use of apostrophes Plural of "URL" is "URLs"; "URL's" means "of the URL". --- tasks/css-url-embed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/css-url-embed.js b/tasks/css-url-embed.js index bc10179..a108e21 100755 --- a/tasks/css-url-embed.js +++ b/tasks/css-url-embed.js @@ -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 }; @@ -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({ From 06fb542ffb8b52d6f001eb01554486a06a82f1cc Mon Sep 17 00:00:00 2001 From: James Forrester Date: Fri, 14 Nov 2014 09:14:44 -0800 Subject: [PATCH 2/2] Fix mis-use of apostrophes in the README.md file --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b355db9..55b8106 100755 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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 @@ -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 @@ -102,7 +102,7 @@ cssUrlEmbed: { } ``` -#### Exclude URL's by size +#### Exclude URLs by size ```js cssUrlEmbed: { encode: { @@ -118,7 +118,7 @@ cssUrlEmbed: { } ``` -#### Excluding URL's manually +#### Excluding URLs manually ```css .exclude-me { background-image: url('exclude_me.png'); /* noembed */