Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Forked a React starter and added Hot Module Reload and Tree Shaking to the mix. Used as a tutorial support in a UI mini-meetup with a bunch of awesome people. :)

Notifications You must be signed in to change notification settings

cassilup/react-hot-module-replace-tree-shake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Webpack 2 Setup with Tree Shaking and Hot Module Replacement

Started from https://www.robinwieruch.de/minimal-react-webpack-babel-setup/ and added:

Prerequisites

node and yarn installed.

Setup

  1. Clone the repo:
$> git clone https://github.com/cassilup/react-hot-module-replace-tree-shake
  1. Install dependencies:
$> yarn

Commands

Development

$> yarn start

And navigate to http://localhost:8080 to see it in action.

Any changes to the JS(X) code will be Hot-Module-Replaced into the page (meaning: without a full refresh).

Production

$> yarn dist

...and you now have the dist/ folder holding both index.html as well as the app packaged in bundle.js.

Enjoy. :)

About

Forked a React starter and added Hot Module Reload and Tree Shaking to the mix. Used as a tutorial support in a UI mini-meetup with a bunch of awesome people. :)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published