It uses run-script by NPM to build the React part of the app using the local webpack installation (sat inside your node_modules folder) rather than you having to install webpack globally on your machine.
I also added a watch command, so you can have two terminal windows open, one for Jekyll, one for NPM, e.g.
What this does
Adds two commands to NPM:
npm run build
npm run watch
It uses run-script by NPM to build the React part of the app using the local webpack installation (sat inside your
node_modules
folder) rather than you having to install webpack globally on your machine.I also added a watch command, so you can have two terminal windows open, one for Jekyll, one for NPM, e.g.