From d66427dddeaef572b44fd4436b15cfca6db4dcd8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 23 Oct 2015 10:16:00 +0100 Subject: [PATCH] Relative-ize paths in webpack config: they're supposed to be relative but sometimes they aren't. --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 7868699d..929e57d7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,7 +20,8 @@ module.exports = { // removed which gives a tree with matrix-react-sdk and vector // trees smashed together, but this fixes everything being under // various levels of '.' and '..' - return info.resourcePath.replace(/^[\/\.]*/, ''); + // Also, sometimes the resource path is absolute. + return path.relative(process.cwd(), info.resourcePath).replace(/^[\/\.]*/, ''); } }, resolve: {