kenanpengyou / express-webpack-full-live-reload-example

A workflow with full live reload for webpack&express application.
279 stars 88 forks source link

express-webpack-full-live-reload-example

A workflow with full live reload for webpack&express application.

The explaining post could be found here.

This branch master is for webpack 4, use branch webpack_2 or webpack_1 if you need the older version.

Start

  1. Clone this repo.

  2. Install dependencies.

    yarn
    yarn global add supervisor
  3. Try these out.

    • yarn start to develop with full live reload.
    • yarn browsersync is a alternative for development. It may be faster when modifying the express views (templates) only.
    • yarn production to emit outputs and run the express for production.
    • yarn build if you care about what is hold in memory for development...

Preview

example preview