babel-plugin-dva-hmr
Hmr plugin for dva.
Last updated 8 years ago by sorrycc .
MIT · Original npm · Tarball · package.json
$ npm install babel-plugin-dva-hmr 
SYNC missed versions from official npm registry.

babel-plugin-dva-hmr

NPM version Build Status Coverage Status NPM downloads

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 for app.start().
  • quiet —— Don't output any log.
  • disableModel —— Disable model HMR.

License

MIT

Current Tags

  • 0.4.2                                ...           latest (8 years ago)

9 Versions

  • 0.4.2                                ...           8 years ago
  • 0.4.1                                ...           9 years ago
  • 0.4.0                                ...           9 years ago
  • 0.3.2                                ...           10 years ago
  • 0.3.1                                ...           10 years ago
  • 0.3.0                                ...           10 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 16
Today 1
This Week 1
This Month 14
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (16)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE