-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I override "config-overrides.js"? #656
Comments
Which framework are you using? If it depends on react-app-rewired, it's quite likely that the |
The framework we use is private sdk which is not public open source codes. It's very modified file from original |
Yes, you can create your own config-overrides.js in the root of your project and use it to extend or override the existing config-overrides.js provided by the framework SDK. However, you will need to ensure that your custom configuration properly integrates or merges with the existing one to avoid any conflicts or issues. Here's how you can achieve this: Install Necessary Packages: Ensure you have react-app-rewired installed. You can install it using npm or yarn if it's not already installed:
or
Create Your Custom config-overrides.js: In the root directory of your project, create a new config-overrides.js file. Merge or Extend the Existing Configuration: Inside your config-overrides.js, you will import the existing configuration from the framework SDK and then extend or modify it as needed. Here is an example of how you can do this:
In the example above: We first apply the framework's config-overrides.js to the configuration.
By following these steps, you can effectively extend or override the existing config-overrides.js provided by the framework SDK with your own custom configurations. |
The framework sdk which I'm using uses
react-app-rewired
and already hasconfig-overrides.js
in node_modules folder.Since I can't modify the framework's
config-overrides.js
. Can I newly makeconfig-overrides.js
in the root path of my project and re-overrideconfig-overrides.js
which is already existing previously?The text was updated successfully, but these errors were encountered: