Skip to content

Commit

Permalink
fix(getOptions): deprecation warn in loaderUtils (#114)
Browse files Browse the repository at this point in the history
* fix(getOptions): deprecation warn in loaderUtils

* ci(Travis): removes osx build and node 5
  • Loading branch information
joshwiens authored Feb 24, 2017
1 parent 7c28052 commit 5e12be4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ sudo: false
language: node_js
os:
- linux
- osx
node_js:
- node
- "6"
- "5"
- "4"

script: npm run travis
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function randomIdent() {
}

function getLoaderConfig(context) {
var query = loaderUtils.parseQuery(context.query);
var query = loaderUtils.getOptions(context) || {};
var configKey = query.config || 'htmlLoader';
var config = context.options && context.options.hasOwnProperty(configKey) ? context.options[configKey] : {};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"es6-templates": "^0.2.2",
"fastparse": "^1.1.1",
"html-minifier": "^3.0.1",
"loader-utils": "^0.2.15",
"loader-utils": "^1.0.2",
"object-assign": "^4.1.0"
},
"license": "MIT",
Expand Down

0 comments on commit 5e12be4

Please sign in to comment.