Skip to content

Commit

Permalink
Use loader options if available
Browse files Browse the repository at this point in the history
  • Loading branch information
yardnsm committed Aug 8, 2017
1 parent 3f164f1 commit da13336
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ var ejs = require('ejs'),

module.exports = function (source) {
this.cacheable && this.cacheable();
var opts = merge(this.options['ejs-compiled-loader'] || {}, utils.parseQuery(this.query));

var query = typeof this.query === 'object' ? this.query : utils.parseQuery(this.query);
var opts = merge(this.options['ejs-compiled-loader'] || {}, query);
opts.client = true;

// Skip compile debug for production when running with
Expand Down

0 comments on commit da13336

Please sign in to comment.