From 9356a813b04b60eb47899042b20c2b0ca177a542 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Fri, 28 Apr 2017 22:17:22 +0200 Subject: [PATCH] docs(README): fix typesetting, add links (#75) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7666c19..be43c2d 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,15 @@ npm install --save-dev url-loader

Usage

-The `url` loader works like the `file` loader, but can return a Data Url if the file is smaller than a byte limit. +The `url-loader` works like the [`file-loader`](https://github.com/webpack-contrib/file-loader), but can return a [data URL](https://tools.ietf.org/html/rfc2397) if the file is smaller than a byte limit. -The limit can be specified with a query parameter. (Defaults to no limit) +The limit can be specified with a query parameter (defaults to no limit). -If the file is greater than the limit (in bytes) the [`file-loader`](https://github.com/webpack/file-loader) is used and all query parameters are passed to it. +If the file is greater than the limit (in bytes) the `file-loader` is used and all query parameters are passed to it. ``` javascript require("url-loader?limit=10000!./file.png"); -// => DataUrl if "file.png" is smaller than 10kb +// => data URL if "file.png" is smaller than 10kb require("url-loader?mimetype=image/png!./file.png"); // => Specify mimetype for the file (Otherwise it's inferred from extension.)