Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b2d90ea1
Commit
b2d90ea1
authored
Apr 27, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure parent entrypoint is loaded if direct one is unavailable
parent
f9e33f43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
app/helpers/webpack_helper.rb
app/helpers/webpack_helper.rb
+11
-5
No files found.
app/helpers/webpack_helper.rb
View file @
b2d90ea1
...
...
@@ -15,12 +15,18 @@ module WebpackHelper
end
route
=
[
*
controller
.
controller_path
.
split
(
'/'
),
action
].
compact
entrypoint
=
"pages.
#{
route
.
join
(
'.'
)
}
"
until
chunks
.
any?
||
route
.
empty?
entrypoint
=
"pages.
#{
route
.
join
(
'.'
)
}
"
begin
chunks
=
entrypoint_paths
(
entrypoint
,
extension:
'js'
)
rescue
Gitlab
::
Webpack
::
Manifest
::
AssetMissingError
# no bundle exists for this path
end
route
.
pop
end
if
chunks
.
empty?
chunks
=
entrypoint_paths
(
"default"
,
extension:
'js'
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment