Open yura-master-web opened 7 years ago
npm install --save-dev babel-preset-react-hmre
change module section in webpack.config.js
module
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
package.json
scripts
"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/
npm install --save-dev babel-preset-react-hmre
change
module
section inwebpack.config.js
in
package.json
changescripts
sectionAnd that's it, happy live reload ... http://matthewlehner.net/react-hot-module-replacement-with-webpack/