TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

React-app-rewired: override create-react-app webpack configs without ejecting

22 pointsby mxstbralmost 8 years ago

2 comments

captainmuonalmost 8 years ago
react-app-rewired looks cool, I&#x27;ll have to try it the next time I hit a wall (and just need a little tweak)!<p>One rant while I&#x27;m here: I don&#x27;t really like create-react-app&#x27;s approach of forcing me to &quot;eject&quot; 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&#x27;d much rather have it expose the webpack config etc., so I can &quot;fork&quot; 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:<p>- If you don&#x27;t modify your config, then merging will work fine, just like now.<p>- If you do make changes, then it might merge, or it might require manual updating. But in the current model it <i>will</i> require manual updating, because you ejected. So you only gain.<p>Last but not least, in a real project you will at some point diverge from tracking the boilerplate, and use `npm outdated` anyway.<p>Does anybody know if there is a create-react-app alternative along those lines? Preferably a bit more lightweight?
评论 #14580533 未加载
ice109almost 8 years ago
potentially very useful; I&#x27;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?
评论 #14580910 未加载