Built from simple React boilerplate with babel, webpack, and webpack-dev-server. See package.json
for details of dependencies.
-
Clone or download this repo
-
Change to this project's directory, and in terminal run
npm install
, oryarn install
if you use Yarn. -
There are three commands defined in
package.json
:-
npm run dev
oryarn dev
will start a webpack-dev-server with HMR (Hot Module Replacement). This will save your time in re-transpiling JSX and refreshing browsers everytime you make changes to your React components. -
npm run build
oryarn build
will use webpack to bundle two filesvendor.bundle.js
andapp.bundle.js
intostatic/js
directory. -
npm run clean
oryarn clean
will simply rm the built js files.
-
-
After using
npm run dev
to start a webpack-dev-server, the content is served at http://localhost:8000/