Skip to content

Conversation

adriendupuis
Copy link
Contributor

@adriendupuis adriendupuis commented Sep 9, 2025

Question Answer
JIRA Ticket N/A
Versions 5.0
Edition All

webpack.config.js: Update ibexaConfigManager and getIbexaConfig paths

Previews:

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

Update `ibexaConfigManager` and `getIbexaConfig` paths
Copy link

github-actions bot commented Sep 9, 2025

Preview of modified files

Preview of modified Markdown:

Get `ibexaConfigManager` and `getIbexaConfig`, now absent by default, then use them, and finally add ibexaConfig to module.exports
@adriendupuis adriendupuis force-pushed the update-5.0-webpack.config.js branch from 443b4cf to ccbeb83 Compare September 9, 2025 14:07
Copy link

github-actions bot commented Sep 9, 2025

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/back_office/image_editor/config/webpack.config.js


code_samples/back_office/image_editor/config/webpack.config.js

docs/content_management/images/extend_image_editor.md@37:``` js
docs/content_management/images/extend_image_editor.md@38:[[= include_file('code_samples/back_office/image_editor/config/webpack.config.js', 6, 7) =]]//...
docs/content_management/images/extend_image_editor.md@39:[[= include_file('code_samples/back_office/image_editor/config/webpack.config.js', 50, 55) =]]
docs/content_management/images/extend_image_editor.md@40:```

001⫶const ibexaConfigManager = require('./ibexa.webpack.config.manager.js');
002⫶//...
003⫶ibexaConfigManager.add({
004⫶ ibexaConfig,
005⫶ entryName: 'ibexa-admin-ui-layout-js',
006⫶ newItems: [ path.resolve(__dirname, './assets/random_dot/random-dot.js'), ],
007⫶});
docs/content_management/images/extend_image_editor.md@37:``` js hl_lines="10"
docs/content_management/images/extend_image_editor.md@38:[[= include_file('code_samples/back_office/image_editor/config/webpack.config.js', 51, 62) =]]
docs/content_management/images/extend_image_editor.md@39:```

001⫶/* Get ibexaConfig and ibexaConfigManager */
002⫶const ibexaConfigManager = require('@ibexa/frontend-config/webpack-config/manager');
003⫶const getIbexaConfig = require('@ibexa/frontend-config/webpack-config/ibexa');
004⫶const ibexaConfig = getIbexaConfig();
005⫶
006⫶/* Add dot action to Admin UI layout JS */
007⫶ibexaConfigManager.add({
008⫶ ibexaConfig,
009⫶ entryName: 'ibexa-admin-ui-layout-js',
010❇️ newItems: [ path.resolve(__dirname, './assets/random_dot/random-dot.js'), ],
011⫶});


code_samples/back_office/search/append_to_webpack.config.js

docs/administration/back_office/customize_search_suggestion.md@120:``` javascript
docs/administration/back_office/customize_search_suggestion.md@121://…
docs/administration/back_office/customize_search_suggestion.md@122:[[= include_file('code_samples/back_office/search/append_to_webpack.config.js') =]]
docs/administration/back_office/customize_search_suggestion.md@123:```

001⫶//…


code_samples/back_office/search/append_to_webpack.config.js

docs/administration/back_office/customize_search_suggestion.md@120:``` javascript
docs/administration/back_office/customize_search_suggestion.md@121://…
docs/administration/back_office/customize_search_suggestion.md@122:[[= include_file('code_samples/back_office/search/append_to_webpack.config.js') =]]
docs/administration/back_office/customize_search_suggestion.md@123:```

001⫶//…
002⫶const ibexaConfigManager = require('./ibexa.webpack.config.manager.js');
003⫶
004⫶ibexaConfigManager.add({
005⫶ ibexaConfig,
006⫶ entryName: 'ibexa-admin-ui-layout-js',
007⫶ newItems: [path.resolve(__dirname, './assets/js/admin.search.autocomplete.product.js')],
008⫶});
002⫶const ibexaConfigManager = require('@ibexa/frontend-config/webpack-config/manager');
003⫶const getIbexaConfig = require('@ibexa/frontend-config/webpack-config/ibexa');
004⫶const ibexaConfig = getIbexaConfig();
005⫶
006⫶ibexaConfigManager.add({
007⫶ ibexaConfig,
008⫶ entryName: 'ibexa-admin-ui-layout-js',
009⫶ newItems: [path.resolve(__dirname, './assets/js/admin.search.autocomplete.product.js')],
010⫶});


Download colorized diff

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant