Skip to content

Commit

Permalink
webpack aliases (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus authored Dec 28, 2023
1 parent 17e5db4 commit 15a93ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions oarepo_ui/theme/webpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,19 @@
"react-text-truncate": "^0.19.0",
"react-datepicker": "^4.21.0",
}
aliases = {
"../../theme.config$": "less/theme.config",
"../../less/site": "less/site",
"../../less": "less",
}

else:
# RDM 12 webpack dependencies are already included in the oarepo python package, so we just include
# those used in our own components here
dependencies = {
"react-datepicker": "^4.21.0",
}
aliases = {}

theme = WebpackThemeBundle(
__name__,
Expand All @@ -68,10 +75,10 @@
dependencies=dependencies,
devDependencies={},
aliases={
**aliases,

"@translations/oarepo_ui": "translations/oarepo_ui",
"../../theme.config$": "less/theme.config",
"../../less/site": "less/site",
"../../less": "less",

# search and edit
"@less/oarepo_ui": "less/oarepo_ui",
"@js/oarepo_ui": "js/oarepo_ui",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-ui
version = 5.0.93
version = 5.0.94
description = UI module for invenio 3.5+
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 15a93ca

Please sign in to comment.