babel-plugin-dva-hmr
Hmr plugin for dva.
Last updated 7 years ago by sorrycc .
MIT · Original npm · Tarball · package.json
$ cnpm 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 (7 years ago)

9 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |