babel-plugin-dva-hmr
v0.4.2
Published
Hmr plugin for dva.
Downloads
30,561
Readme
babel-plugin-dva-hmr
HMR babel plugin for dva.
Install
$ npm install babel-plugin-dva-hmr [email protected] --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