mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
Use rootModule when module is concatenated
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
5a51a6b3e5
commit
8ee7c20e4d
1 changed files with 4 additions and 1 deletions
|
|
@ -27,7 +27,10 @@ module.exports = {
|
|||
publicPath: '/dist/',
|
||||
filename: (chunkData) => {
|
||||
// Get relative path of the src folder
|
||||
const srcPath = chunkData.chunk.entryModule.context
|
||||
let srcPath = chunkData.chunk.entryModule.context
|
||||
if (srcPath === null) {
|
||||
srcPath = chunkData.chunk.entryModule.rootModule.context
|
||||
}
|
||||
const relativePath = path.relative(__dirname, srcPath)
|
||||
|
||||
// If this is a core source, output in core dist folder
|
||||
|
|
|
|||
Loading…
Reference in a new issue