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

Add the capability to configure react-scripts webpack options #13107

Open
GuillaumeMilan opened this issue Apr 4, 2023 · 0 comments
Open

Add the capability to configure react-scripts webpack options #13107

GuillaumeMilan opened this issue Apr 4, 2023 · 0 comments

Comments

@GuillaumeMilan
Copy link

I had exactly the same problem as described in the following issue #12009 starting my react-app inside a docker container on Mac OS via OrbStack.
I think this is correlated with the VM issue that lead to the CHOKIDAR_USEPOLLING introduction.

But adding this option did not fix my problem and I had to modify node_modules/react-scripts/scripts/start.js config constant declaration as follow:

 const config = {
      ...configFactory('development'),
      watchOptions: {                                                                                                                                                                                       
        poll: 1000,
      },
    };

I don't who should implement the capability to provide this as an option (react-scripts or configFactory).
But it would be super nice if we could provide webpack configuration arguments to the react-scripts scripts.

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

No branches or pull requests

1 participant