3 ms·
The result of me doing the same thing is here: https://github.com/edwardmsmith/react-starter https://github.com/edwardmsmith/react-starter I didn't find the w
by EdwardMSmith 11y ago
The result of me doing the same thing is here:
https://github.com/edwardmsmith/react-starter 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.
- plexicle 11y agoThat looks perfect! Does it minify/concat? I will dive deeper this evening in any case. Thanks!
- EdwardMSmith 11y agoYes, 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 https://github.com/webpack/docs/wiki/optimization