Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 687 Bytes

File metadata and controls

28 lines (15 loc) · 687 Bytes

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