Skip to content

Commit

Permalink
Handle basePath option for preprocessors paths. Fixes karma-runner#146
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Hervieu committed May 25, 2016
1 parent ae37486 commit fbae8d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/grunt-karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ module.exports = function (grunt) {
var preprocessors = {}
Object.keys(data.preprocessors).forEach(function (key) {
var value = data.preprocessors[key]
if (options.basePath) {
key = options.basePath + key
}
key = path.resolve(key)
key = grunt.template.process(key)
preprocessors[key] = value
Expand Down

0 comments on commit fbae8d9

Please sign in to comment.