Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from rafaelverger/upgrade_webpack4
Browse files Browse the repository at this point in the history
Upgrade to webpack v4
  • Loading branch information
monolithed authored Mar 8, 2018
2 parents 4d5ef88 + ea693aa commit 8a59de1
Show file tree
Hide file tree
Showing 4 changed files with 9,584 additions and 41 deletions.
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ module.exports = function (content) {
this.cacheable();
}

let query = loaderUtils.parseQuery(this.query);

let extension = loaderUtils.interpolateName(this, '[ext]', {
context: query.context || this.options.context,
context: this.query.context || this.rootContext,
content: content,
regExp: query.regExp
regExp: this.query.regExp
});

extension = extension.toLowerCase();
Expand All @@ -26,10 +24,10 @@ module.exports = function (content) {
throw new Error(`${extension} type is not supported`);
}

let { limit = 0 } = query;
let { limit = 0 } = this.query;

try {
({ dataUrlLimit: limit } = this.options.url);
({ dataUrlLimit: limit } = this.query.url);
}
catch (error) { }

Expand Down
Loading

0 comments on commit 8a59de1

Please sign in to comment.