Skip to content

Commit

Permalink
webpack: configure copy patterns for TinyMCE
Browse files Browse the repository at this point in the history
  • Loading branch information
max-moser committed Nov 26, 2024
1 parent ab81bd4 commit 6575c79
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions invenio_app_rdm/theme/webpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@
"@js/invenio_app_rdm": "js/invenio_app_rdm",
"@translations/invenio_app_rdm": "translations/invenio_app_rdm",
},
copy=[
# Copy some assets into "static/dist", as TinyMCE requires that
# Note that the base path for all entries is the `config.json` directory
{
"from": "../node_modules/tinymce/skins/content/default/content.css",
"to": "../../static/dist/js/skins/content/default",
},
{
"from": "../node_modules/tinymce/skins/ui/oxide/skin.min.css",
"to": "../../static/dist/js/skins/ui/oxide",
},
{
"from": "../node_modules/tinymce/skins/ui/oxide/content.min.css",
"to": "../../static/dist/js/skins/ui/oxide",
},
],
),
},
)

0 comments on commit 6575c79

Please sign in to comment.