karma-ng-html2js-preprocessor icon indicating copy to clipboard operation
karma-ng-html2js-preprocessor copied to clipboard

Missing prependSufix preprocessor argument

Open MattiasAJohansson opened this issue 10 years ago • 0 comments

When issuing a HTTP GET with arguments: Ex. myapp/index.html?v=1.0 it fails with error:

 Error: Unexpected request: GET myapp/index.html?v=1.0

adding a prependSufix in createHtml2JsPreprocessor  fixes this:
...createHtml2JsPreprocessor ... {
...
  var prependSufix = config.prependSufix || '';
...
    return prependPrefix + filepath.replace(stripPrefix, '').replace(stripSufix, '') + prependSufix;

MattiasAJohansson avatar May 20 '15 12:05 MattiasAJohansson