This repository was archived by the owner on Aug 21, 2020. It is now read-only.
This repository was archived by the owner on Aug 21, 2020. It is now read-only.
hot reloading not happening for child [dumb] components #66
Closed
Description
I have container components and child components. Live reloading happens for my any changes in root (container) components but child components changes are not triggering even webpack rebuild.
part of webpack.config.file
entry: {
main: [
'webpack-hot-middleware/client',
'./src/index.js'
]
},
output: {
filename: '[name].js',
path: path.join(__dirname, 'public'),
publicPath: '/public/'
},
module: {
loaders: [{
test: /\.jsx?$/,
include: path.join(__dirname, 'src'),
loader: ['babel'],
exclude: [nodeModulesPath],
// Options to configure babel with
query: {
}
}
.babelrc
{
"stage": 0,
"env": {
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}, {
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels