Hacker News new | past | comments | ask | show | jobs | submit login

The result of me doing the same thing is here:

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.




That looks perfect! Does it minify/concat? I will dive deeper this evening in any case. Thanks!


Yes, when you run Webpack with the -p (production) flag, as I do in the `deploy`, it minimizes the output:

https://github.com/webpack/docs/wiki/optimization




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: