From edb38703f3356ac5f6abfbb06fb421f02b9e3b46 Mon Sep 17 00:00:00 2001 From: natedanner Date: Thu, 25 May 2017 20:25:22 -0700 Subject: [PATCH] Pass root dir through path.normalize so provided rootDir path separators provided will work on the platform the loader is executing in. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 732a99d..b2b23ad 100644 --- a/index.js +++ b/index.js @@ -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();