gizwits-babel-plugin-dva-hmr
v1.0.0
Published
Hmr plugin for dva.
Downloads
1
Maintainers
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