3 ms·
React-app-rewired: override create-react-app webpack configs without ejecting
- captainmuon 9y agoreact-app-rewired looks cool, I'll have to try it the next time I hit a wall (and just need a little tweak)! One rant while I'm here: I don't really like create-react-app's approach of forcing me to "eject" to make certain changes. I am just a react beginner, but in one of my first experiments I already reached the limits (I think it was because I wanted to use Sass, not sure). I'd much rather have it expose the webpack config etc., so I can "fork" and edit it, and merge changes back when they make an update. Even if that would mean breakage every now and then. I think that model would be strictly superior to the current situation: - If you don't modify your config, then merging will work fine, just like now. - If you do make changes, then it might merge, or it might require manual updating. But in the current model it will require manual updating, because you ejected. So you only gain. Last but not least, in a real project you will at some point diverge from tracking the boilerplate, and use `npm outdated` anyway. Does anybody know if there is a create-react-app alternative along those lines? Preferably a bit more lightweight?
- ice109 9y agoi don't understand what you mean by "merge"?
- captainmuon 9y agoAs in "git pull", but you've changed a file in the boilerplate code, and have to merge changes.
- ice109 9y agopotentially very useful; I've been committing the sin of manipulating the CRA scripts in node-modules and writing down diffs in my build docs up until now. anyone have experience with this?