HMR babel plugin for dva.
$ npm install babel-plugin-dva-hmr redbox-react@1.x --save-dev
.babelrc
{
"plugins": ["dva-hmr"]
}
Configure it in .roadhogrc(configure file for roadhog) only in development mode, example
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr"
]
}
}
container
—— Specify the root element forapp.start()
.quiet
—— Don't output any log.disableModel
—— Disable model HMR.
MIT