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