Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
8ee7c20e
Unverified
Commit
8ee7c20e
authored
Dec 1, 2021
by
Louis Chemineau
Committed by
John Molakvoæ
Jan 8, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Use rootModule when module is concatenated
Signed-off-by:
Louis Chemineau
<
louis@chmn.me
>
parent
5a51a6b3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
webpack.common.js
+4
-1
4 additions, 1 deletion
webpack.common.js
with
4 additions
and
1 deletion
webpack.common.js
+
4
−
1
View file @
8ee7c20e
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment