by plexicle · 10y ago · 0 comments
All I want is are two simple configs. A dev one with a server/hot loader, and a prod one that concats/minifies. ES2015. That's it. That just doesn't exist out there. It's either no decent production bundler, or it's like 15 files and 900 lines of configuration that seem completely overkill.
I don't know. I don't have time to learn how the tooling works, but I also don't want a bunch of magic. Angular 2 is looking really good right now even with the (still very incomplete) angular-cli tool.
Dang. I just want my simple gulpfile back.
https://github.com/edwardmsmith/react-starter
I didn't find the webpack stuff to be too overwhelming, and split dev and prod into two webpack files.
`npm start` to start the dev server and `npm deploy` for a production build. The production build produces two files - a vendor file that contains vendor code, and a client file that contains custom code.
It probably contains more than you're interested in (redux, tests, etc.) but it should be clear how to strip that out.
This seems to remove complexity but it just hides the complexity in the dependency. When something doesn't work out or he wants to change the behavior he still has to delve into these "15 files and 900 lines of configuration".
For something more approachable but less powerful check out https://github.com/insin/nwb.