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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9d57d50a
Commit
9d57d50a
authored
Jan 30, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document ee_else_ce alias for splitting CE/EE JavaScript
parent
14397584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
doc/development/ee_features.md
doc/development/ee_features.md
+14
-0
No files found.
doc/development/ee_features.md
View file @
9d57d50a
...
...
@@ -839,6 +839,20 @@ For example there can be an
`app/assets/javascripts/protected_branches/protected_branches_bundle.js`
and an
EE counterpart
`ee/app/assets/javascripts/protected_branches/protected_branches_bundle.js`
.
The corresponding import statement would then look like this:
```
javascript
// app/assets/javascripts/protected_branches/protected_branches_bundle.js
import
bundle
from
'
~/protected_branches/protected_branches_bundle.js
'
;
// ee/app/assets/javascripts/protected_branches/protected_branches_bundle.js
// (only works in EE)
import
bundle
from
'
ee/protected_branches/protected_branches_bundle.js
'
;
// in CE: app/assets/javascripts/protected_branches/protected_branches_bundle.js
// in EE: ee/app/assets/javascripts/protected_branches/protected_branches_bundle.js
import
bundle
from
'
ee_else_ce/protected_branches/protected_branches_bundle.js
'
;
```
See the frontend guide
[
performance section
](
./fe_guide/performance.md
)
for
information on managing page-specific javascript within EE.
...
...
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