Skip to content

Commit

Permalink
Pass root dir through path.normalize so provided rootDir path separat…
Browse files Browse the repository at this point in the history
…ors provided will work on the platform the loader is executing in.
  • Loading branch information
natedanner authored and avaly committed May 26, 2017
1 parent ddbe27f commit edb3870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -3,7 +3,7 @@ var dust = require('dustjs-linkedin');

module.exports = function(content) {
//If rootDir is configured then omit it from the template name
const rootDir = this.query['rootDir'] ? `${this.query['rootDir']}${path.sep}` : '';
const rootDir = this.query['rootDir'] ? `${path.normalize(this.query['rootDir'])}${path.sep}` : '';

if (this.cacheable) {
this.cacheable();
Expand Down

0 comments on commit edb3870

Please sign in to comment.