RachaneeSaeng / react-template

Template to create react application.
2 stars 2 forks source link

ReactTemplate

Template to create react application with Typescipt + Babel + WebPack + Hot Loader.

Run below command in command windows to install all modules specifified in package.json.

npm install

Development

comment out following line from webpack.config.js

process.env.NODE_ENV = 'production';

Then command prompt at the project folder

  1. Run command webpack to bundle modules

  2. Run command npm start to start webpack dev server with hot loader.

Production

uncomment following line from webpack.config.js

process.env.NODE_ENV = 'production';

Then command prompt at the project folder

  1. Run command webpack -p to minify and bundle modules