Skip to content
Snippets Groups Projects
Unverified Commit 8ee7c20e authored by Louis Chemineau's avatar Louis Chemineau Committed by John Molakvoæ
Browse files

Use rootModule when module is concatenated


Signed-off-by: default avatarLouis Chemineau <louis@chmn.me>
parent 5a51a6b3
Branches
Tags
No related merge requests found
...@@ -27,7 +27,10 @@ module.exports = { ...@@ -27,7 +27,10 @@ module.exports = {
publicPath: '/dist/', publicPath: '/dist/',
filename: (chunkData) => { filename: (chunkData) => {
// Get relative path of the src folder // 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) const relativePath = path.relative(__dirname, srcPath)
// If this is a core source, output in core dist folder // If this is a core source, output in core dist folder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment