Re:React-boilerplate: setup for performance orientated, offl...
by nanoojaboo on Saturday December 26, 2015 @05:39PM
(#10795539)
It has two webpack configs (one for dev, one for production), how do you indicate which one you are using when you run webpack?
[ Parent
| on HN ]
Re:React-boilerplate: setup for performance orientated, offl...
by hakanito on Saturday December 26, 2015 @07:02PM
(#10795770)
Check the package.json, there are several npm scripts. The author of this library probably wants you to run `npm run start` for development and `npm run serve` for production
Re:React-boilerplate: setup for performance orientated, offl...
by brianzelip on Sunday December 27, 2015 @09:31AM
(#10797538)
It's worth noting here that "production" is not for literally serving your app. Rather it's used here to provide a production-like build of your app that can be tested on multiple devices before actually deploying it online.
Re:React-boilerplate: setup for performance orientated, offl...
by mxstbr on Sunday December 27, 2015 @02:23AM
(#10796741)
hakanito is spot on, I just wanted to add that there's a COMMANDS.md[0] with all the possible npm commands!
I take care of running webpack with the right envs, linting and building your application, you use the npm commands and write a great app!
[0]: See: https://github.com/mxstbr/react-boilerplate/blob/master/docs...
Re:React-boilerplate: setup for performance orientated, offl...
by callumlocke on Saturday December 26, 2015 @08:49PM
(#10796061)
Development: npm start
Production: npm run build