Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b0336957
Unverified
Commit
b0336957
authored
7 years ago
by
David Ormsbee
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #16477 from edx/ormsbee/consolidate_theme_js
Remove collection of JS bundles for themes.
parents
a4095e49
255dc792
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/theming/storage.py
+1
-9
1 addition, 9 deletions
openedx/core/djangoapps/theming/storage.py
with
1 addition
and
9 deletions
openedx/core/djangoapps/theming/storage.py
+
1
−
9
View file @
b0336957
...
...
@@ -251,10 +251,9 @@ class ThemePipelineMixin(PipelineMixin):
for
theme
in
themes
:
css_packages
=
self
.
get_themed_packages
(
theme
.
theme_dir_name
,
settings
.
PIPELINE_CSS
)
js_packages
=
self
.
get_themed_packages
(
theme
.
theme_dir_name
,
settings
.
PIPELINE_JS
)
from
pipeline.packager
import
Packager
packager
=
Packager
(
storage
=
self
,
css_packages
=
css_packages
,
js_packages
=
js_packages
)
packager
=
Packager
(
storage
=
self
,
css_packages
=
css_packages
)
for
package_name
in
packager
.
packages
[
'
css
'
]:
package
=
packager
.
package_for
(
'
css
'
,
package_name
)
output_file
=
package
.
output_filename
...
...
@@ -262,13 +261,6 @@ class ThemePipelineMixin(PipelineMixin):
packager
.
pack_stylesheets
(
package
)
paths
[
output_file
]
=
(
self
,
output_file
)
yield
output_file
,
output_file
,
True
for
package_name
in
packager
.
packages
[
'
js
'
]:
package
=
packager
.
package_for
(
'
js
'
,
package_name
)
output_file
=
package
.
output_filename
if
self
.
packing
:
packager
.
pack_javascripts
(
package
)
paths
[
output_file
]
=
(
self
,
output_file
)
yield
output_file
,
output_file
,
True
super_class
=
super
(
ThemePipelineMixin
,
self
)
if
hasattr
(
super_class
,
'
post_process
'
):
...
...
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