Relative-ize paths in webpack config: they're supposed to be relative but sometimes they aren't.
This commit is contained in:
+2
-1
@@ -20,7 +20,8 @@ module.exports = {
|
|||||||
// removed which gives a tree with matrix-react-sdk and vector
|
// removed which gives a tree with matrix-react-sdk and vector
|
||||||
// trees smashed together, but this fixes everything being under
|
// trees smashed together, but this fixes everything being under
|
||||||
// various levels of '.' and '..'
|
// various levels of '.' and '..'
|
||||||
return info.resourcePath.replace(/^[\/\.]*/, '');
|
// Also, sometimes the resource path is absolute.
|
||||||
|
return path.relative(process.cwd(), info.resourcePath).replace(/^[\/\.]*/, '');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user