Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 809 Bytes

File metadata and controls

41 lines (26 loc) · 809 Bytes

react_base_static

Compiles all the scripts & styles from src path to dist.Generates source maps by default in development mode. for react app wepack compile and hot reload happens on page.For other static documents gulp watches and notify webpack of changes then browser sync updated the webpage automatically.

##Installation

    $ npm install 

##Usage

To build on development mode, generates a minified version with source map.

    $ npm run build

To build on production mode

    $ NODE_ENV=production npm run build

To use webpack dev server & watch in one tab,

    $ npm start

and in another tab start gulp

    $ gulp

Additional Info:

To see react-hot-loader in action, edit app/src/js/reactapp/HelloWorld.jsx

Cheers