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 Sep 24, 2024
1 parent fcca3ef commit 1d707f3
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 @@ -70,6 +70,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 1d707f3

Please sign in to comment.