Find file History
sorrycc Publish
 - af-webpack@1.3.4
 - umi-build-dev@1.3.4
 - umi-plugin-dva@1.3.1
 - umi-plugin-locale@2.3.3
 - umi-plugin-polyfills@1.3.1
 - umi-plugin-react@1.3.4
 - umi-test@1.3.1
 - umi-utils@1.3.1
 - umi@2.3.4
Latest commit fd52c1f Jan 9, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
template
README.md
package.json
yarn.lock

README.md

umi-plugin-dva

umi的dva插件。

.umirc.js

export default {
  plugins: [
    "umi-plugin-dva"
  ]
};

支持配置

export default {
  plugins: [
    ["umi-plugin-dva",{
         immer: true, //default:false
         exclude: [
          /^\$/
        ],//这里是以$开头的model不会被引用
    }]
  ]
};

exclude:提供src/models下的文件不被注册的功能,比如加上$前缀就不会被注册了,值为正则表达式