Skip to content

Update docs for including assets directories of widgets in the app bundle#11342

Open
EnasAbdelrazek wants to merge 1 commit into
mendix:developmentfrom
EnasAbdelrazek:ufc-copy-widgets-runtime-assests-to-dist
Open

Update docs for including assets directories of widgets in the app bundle#11342
EnasAbdelrazek wants to merge 1 commit into
mendix:developmentfrom
EnasAbdelrazek:ufc-copy-widgets-runtime-assests-to-dist

Conversation

@EnasAbdelrazek

@EnasAbdelrazek EnasAbdelrazek commented Jun 11, 2026

Copy link
Copy Markdown
Contributor
  • It requires tech review
  • It is fixed for 11.6.7, 11.12.0, 10.24.22

* *{widgetName}.tile.dark.png* sets the dark-mode equivalent to *{widgetName}.tile.png*
* Optionally, some widget-related resources, preferably located next to the file which contains the client component
* Note that all CSS files you add (except the one located in the **lib** sub-directory) will automatically be loaded in an app via the widget
* All CSS files you add (except the one located in the **lib** sub-directory) will automatically be loaded in an app via the widget.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"except the one", should this be "except the ones"? Or will there ever by only one in the lib folder?

* Optionally, some widget-related resources, preferably located next to the file which contains the client component
* Note that all CSS files you add (except the one located in the **lib** sub-directory) will automatically be loaded in an app via the widget
* All CSS files you add (except the one located in the **lib** sub-directory) will automatically be loaded in an app via the widget.
* When the React Client is enabled for an app, any `assets` directories in a widget package are automatically copied to the widget's directory under `dist` during bundling. This ensures that all asset files from a pluggable widget are included in the final build and available at runtime.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"any assets directories", does this mean that this also works for assets folders in subdirectories?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants