mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Relative-ize paths in webpack config: they're supposed to be relative but sometimes they aren't.
This commit is contained in:
parent
f618585bd6
commit
d66427ddde
1 changed files with 2 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue