Skip to content

Commit

Permalink
[Importing assets] Fixed invalid usage of IbexaConfig and IbexaConfig…
Browse files Browse the repository at this point in the history
…Manager (#2462)
  • Loading branch information
mnocon committed Aug 8, 2024
1 parent 56de588 commit 21016f8
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ create an `ibexa.config.manager.js` file:
``` js
const path = require('path');

module.exports = (IbexaConfig, IbexaConfigManager) => {
IbexaConfigManager.replace({
IbexaConfig,
module.exports = (ibexaConfig, ibexaConfigManager) => {
ibexaConfigManager.replace({
ibexaConfig,
entryName: '<entry-name>',
itemToReplace: path.resolve(__dirname, '<path_to_old_file>'),
newItem: path.resolve(__dirname, '<path_to_new_file>'),
});
IbexaConfigManager.remove({
IbexaConfig,
ibexaConfigManager.remove({
ibexaConfig,
entryName: '<entry-name>',
itemsToRemove: [
path.resolve(__dirname, '<path_to_old_file>'),
path.resolve(__dirname, '<path_to_old_file>'),
],
});
IbexaConfigManager.add({
IbexaConfig,
ibexaConfigManager.add({
ibexaConfig,
entryName: '<entry-name>',
newItems: [
path.resolve(__dirname, '<path_to_new_file>'),
Expand Down Expand Up @@ -117,24 +117,24 @@ To overwrite the built-in assets, use the following configuration to replace, re
in `webpack.config.js`:

``` js
IbexaConfigManager.replace({
IbexaConfig,
ibexaConfigManager.replace({
ibexaConfig,
entryName: '<entry-name>',
itemToReplace: path.resolve(__dirname, '<path_to_old_file>'),
newItem: path.resolve(__dirname, '<path_to_new_file>'),
});

IbexaConfigManager.remove({
IbexaConfig,
ibexaConfigManager.remove({
ibexaConfig,
entryName: '<entry-name>',
itemsToRemove: [
path.resolve(__dirname, '<path_to_old_file>'),
path.resolve(__dirname, '<path_to_old_file>'),
],
});

IbexaConfigManager.add({
IbexaConfig,
ibexaConfigManager.add({
ibexaConfig,
entryName: '<entry-name>',
newItems: [
path.resolve(__dirname, '<path_to_new_file>'),
Expand Down

0 comments on commit 21016f8

Please sign in to comment.