Skip to content

Commit 4606c23

Browse files
committed
css to configKey (default cssLoader)
1 parent 8ae8deb commit 4606c23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/loader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ var compileExports = require("./compile-exports");
1313
module.exports = function(content, map) {
1414
if(this.cacheable) this.cacheable();
1515
var callback = this.async();
16-
var globalOptions = this.options.css || {};
1716
var loaderOptions = loaderUtils.parseQuery(this.query);
17+
var configKey = loaderOptions.config || "cssLoader";
18+
var globalOptions = this.options[configKey] || {};
1819
var query = assign({}, globalOptions, loaderOptions);
1920
var root = query.root;
2021
var moduleMode = query.modules || query.module;

0 commit comments

Comments
 (0)