You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
837816638@qq.com b02b851162
工商大学管理系统代码
5 years ago
..
lib 工商大学管理系统代码 5 years ago
src 工商大学管理系统代码 5 years ago
README.md 工商大学管理系统代码 5 years ago
package.json 工商大学管理系统代码 5 years ago

README.md

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