Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

How to tie '- - hot' so that when you change and save in files, see the changes in the browser #313

Open

Description

@yura-master-web
No description provided.

Activity

  1. zainulabidin302 commented on May 31, 2017

    @zainulabidin302

    npm install --save-dev babel-preset-react-hmre

    change module section in webpack.config.js

    module: {
      loaders: [
        { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader?presets[]=es2015&presets[]=react&presets[]=react-hmre',
          }
      ]
    }
    

    in package.json change scripts section

    
      "scripts": {
        "start": "webpack-dev-server --inline --content-base --hot"
      },
    

    And that's it, happy live reload ...
    http://matthewlehner.net/react-hot-module-replacement-with-webpack/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions