diff --git a/README.md b/README.md index 7a23ad5..7dc3a8c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # simple-functional-loader -use function as webpak loader option +Use function as webpack loader option [![npm version](https://img.shields.io/npm/v/simple-functional-loader.svg)](https://www.npmjs.com/package/simple-functional-loader) [![Build Status](https://travis-ci.org/lovetingyuan/simple-functional-loader.svg?branch=master)](https://travis-ci.org/lovetingyuan/simple-functional-loader) @@ -22,7 +22,7 @@ module.exports = { use: [ createLoader(function(source, map) { // must be an "ES5" function! // use "this" as loaderContext - return processHTML(source, map) + return processHTML(source, map) // process source code. }) ] } @@ -31,7 +31,7 @@ module.exports = { } ``` -`createLoader` will return a `UseEntry` object: +`createLoader` will return [`UseEntry`](https://webpack.js.org/configuration/module/#useentry) object: ``` { loader: string, diff --git a/package.json b/package.json index 543a92d..cc9d759 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-functional-loader", - "version": "1.1.0", + "version": "1.1.1", "description": "use function as webpack loader option", "main": "index.js", "scripts": {