Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lovetingyuan/simple-functional-lo…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
Baitu Huang committed Feb 28, 2019
2 parents 52c7d0e + f072c4d commit d7c8a35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ module.exports = {
module: {
rules: [
{
test: /.html$/,
use: createLoader(function(source) { // must be an "ES5" function!
return processHTML(source)
test: /\.html$/,
use: createLoader(function(source, map) { // must be an "ES5" function!
// use "this" as loaderContext
return processHTML(source, map)
})
}
]
Expand Down

0 comments on commit d7c8a35

Please sign in to comment.