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
Boxiang Sun
gitlab-ce
Commits
06a07e12
Commit
06a07e12
authored
Mar 12, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update EE features frontend section to point to performance.md for info on page-specific EE code
parent
6cfd38e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
doc/development/ee_features.md
doc/development/ee_features.md
+3
-15
No files found.
doc/development/ee_features.md
View file @
06a07e12
...
@@ -360,27 +360,15 @@ Instead place EE specs in the `ee/spec` folder.
...
@@ -360,27 +360,15 @@ Instead place EE specs in the `ee/spec` folder.
## JavaScript code in `assets/javascripts/`
## JavaScript code in `assets/javascripts/`
To separate EE-specific JS-files we
can
also move the files into an
`ee`
folder.
To separate EE-specific JS-files we
should
also move the files into an
`ee`
folder.
For example there can be an
For example there can be an
`app/assets/javascripts/protected_branches/protected_branches_bundle.js`
and an
`app/assets/javascripts/protected_branches/protected_branches_bundle.js`
and an
EE counterpart
EE counterpart
`ee/app/assets/javascripts/protected_branches/protected_branches_bundle.js`
.
`ee/app/assets/javascripts/protected_branches/protected_branches_bundle.js`
.
That way we can create a separate webpack bundle in
`webpack.config.js`
:
See the frontend guide
[
performance section
](
./fe_guide/performance.md
)
for
information on managing page-specific javascript within EE.
```
javascript
protected_branches
:
'
~/protected_branches
'
,
ee_protected_branches
:
'
ee/protected_branches/protected_branches_bundle.js
'
,
```
With the separate bundle in place, we can decide which bundle to load inside the
view, using the
`page_specific_javascript_bundle_tag`
helper.
```
haml
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'protected_branches'
)
```
## SCSS code in `assets/stylesheets`
## SCSS code in `assets/stylesheets`
...
...
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