Skip to content

Commit

Permalink
Merge pull request #19 from jmartinm/css-bundle
Browse files Browse the repository at this point in the history
Add record-editor CSS bundle
  • Loading branch information
jmartinm committed Jul 28, 2017
2 parents ba1fa16 + 2a448b1 commit 0f32d3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions invenio_record_editor/bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

from __future__ import absolute_import, division, print_function

from flask_assets import Bundle
from invenio_assets import NpmBundle

js = NpmBundle(
Expand All @@ -38,3 +39,9 @@
"record-editor": "^0.7.0"
}
)

css = Bundle(
"node_modules/record-editor/dist/styles.bundle.css",
depends=("node_modules/record-editor/dist/*.css"),
output="gen/record-editor.%(version)s.css",
)
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
# 'invenio_access.actions': [],
# 'invenio_admin.actions': [],
'invenio_assets.bundles': [
'invenio_record_editor_js = invenio_record_editor.bundles:js'
'invenio_record_editor_js = invenio_record_editor.bundles:js',
'invenio_record_editor_css = invenio_record_editor.bundles:css'
],
# 'invenio_base.api_apps': [],
# 'invenio_base.api_blueprints': [],
Expand Down

0 comments on commit 0f32d3f

Please sign in to comment.