Skip to content

Commit b96316c

Browse files
Brandonbrandonroberts
Brandon
authored andcommittedDec 19, 2016
fix(loader): Prefer the query 'debug' parameter to the global value (#37)
1 parent 58db6de commit b96316c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function(source, sourcemap) {
1919
var loader = query.loader || 'require';
2020
var genDir = query.genDir || '';
2121
var inline = query.inline || true;
22-
var debug = this.debug || query.debug;
22+
var debug = (typeof query.debug !== 'boolean' ? this.debug : query.debug);
2323

2424
// get the filename path
2525
var resourcePath = this.resourcePath;

0 commit comments

Comments
 (0)