-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Allow user to override webpack.config #1111
Comments
Also issue ID is good for my OCD :D |
Thanks for the proposal. This has been discussed many times before. We currently don’t intend to allow this, as it impedes our ability to safely move forward with painless upgrades, and opens doors for breakage which is exactly what this project tries to protect users against. You can read these past discussions: |
Perhaps the quantity of requests for the same feature is a sign for something... In any case, how do I enable source maps without editing the node_modules? |
It’s a sign of people wanting to have the cake and eat it too 😄 . The purpose of this tool is curation, easy upgrades, and a setup that always works.
You could wait for 0.8.0 which will have them enabled. (Support is already in master.) Same for other changes: if you think something is bad, file an issue, and let’s discuss every specific problem. This way we can fix problems for everyone in the ecosystem using this tool instead of just one user. |
I think that it is a sign of people wanting some degree of customization. Without any customization you are basically saying that everyone are obligated to think the way the coders of the library think. In my experience, while it is a completely valid way of doing things, it may discourage people finding new ways to use your library. But I guess I can always eject and do whatever I want anyway. It saved me the time for the initial setup so it worked out pretty well for me. I'll go eat cake now :) |
That’s the value proposition of this tool. I understand why you want customization, but I’ve also seen enough people burned and confused by customizations that I don’t think it’s healthy to add at this point. Maybe some time later in 2017. There are also alternatives to ejecting. Check out these articles: https://medium.com/@shubheksha/tweaking-configuration-for-react-scripts-in-create-react-app-d91e9d03a42f I hope this helps! |
only 12 line of code will end to all of this discussions: (+some line readme about ejecting or injecting and developer responsibility for what happen after inject and no backward compatibility because webpack configs are internal assets) packages/react-scripts/scripts/start.js
packages/react-scripts/scripts/build.js
what is problem with
Please give us guns. at least I know how to use them. 😎 |
What will happen in practice is once it becomes frictionless, everybody will start doing this, and we’ll end up in the same messy situation all boilerplates are in (hard to upgrade, broken edge cases, updates break more things, no shared willpower to diagnose issues and resolve upstream bugs because everyone’s config is different). And yes, every React beginner will think that their use case is surely special enough to tweak a few lines 😉 .
You could volunteer to help maintain it. With backstroke bot it shouldn’t be a lot of work either. Some friction is intentional for the reasons above. I would like this to be possible, but not too easy. Sorry 😛 |
Hi,
I would like to add functionality that would allow the user to override certain properties in the webpack.config files.
Basically the idea is that that user may create their own config files in the root directory and when webpack is run it will try to merge the default configuration with the user specified one.
We do something similar in our application for application configuration and it works pretty well.
Is it something you will consider to merge?
The text was updated successfully, but these errors were encountered: