Skip to content
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

where does default settings in config parameter come from? #1

Closed
MassMessage opened this issue Mar 9, 2022 · 1 comment
Closed

Comments

@MassMessage
Copy link

where does default settings in config parameter came from? a file or what? can i override it?

i mean the config passed as callback in this case:

const { alias, configPaths } = require('react-app-rewire-alias');

module.exports = function override(config) {
    //console.log('config = ', config)
    return alias(configPaths('./tsconfig.paths.json'))(config);
};
@oklas
Copy link
Owner

oklas commented Mar 10, 2022

Hi @MassMessage,

The parameter config is config for webpack created by react-scripts. You can modify it in runtime. Check how-it-works

What is the page where from you get this package? This package is renamed to react-app-alias. Check migration guide Its possible the link on referral page need to bo chamged, so users can get right place.

Thanks

@oklas oklas closed this as completed Mar 10, 2022
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

No branches or pull requests

2 participants