Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
baitu.huang committed Oct 11, 2019
1 parent 6ddfe12 commit a3cdd11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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.
})
]
}
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit a3cdd11

Please sign in to comment.