diff --git a/index.js b/index.js index 7eae28f1..c111f499 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ function randomIdent() { } function getLoaderConfig(context) { - var query = loaderUtils.parseQuery(context.query); + var query = loaderUtils.getOptions(context) || {}; var config = (context.options && context.options.vue && context.options.vue.html) || {}; delete query.config; return assign(query, config); diff --git a/package.json b/package.json index 81eb2fd3..7d07babb 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "es6-templates": "^0.2.2", "fastparse": "^1.0.0", "html-minifier": "^2.1.5", - "loader-utils": "^0.2.15", + "loader-utils": "^1.0.2", "object-assign": "^4.1.0" }, "devDependencies": {