Answer the question
In order to leave comments, you need to log in
Why is hot-loader not working?
I set a lesson from the loftblog and the official dock.
Webpack config:
`
const path = require('path');
module.exports = {
entry: {
'app': [
'babel-polyfill',
'react-hot-loader/patch',
'./src/index'
]
},
output: {
path: path.join(__dirname, 'public'),
filename: 'bundle.js'
},
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }
]
}
};
{
"presets": ["react", "es2015"],
"plugins": ["react-hot-loader/babel"]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question