umi-plugin-react-xxg
v1.2.0-beta.5
Published
Install via yarn or npm.
Downloads
2
Readme
umi-plugin-react
Usage
Install via yarn or npm.
$ yarn add umi-plugin-react
Configure it in the .umirc.js
.
export default {
plugins: [
['umi-plugin-react-xxg', option],
],
};
locale file support object example
export default {
nav:{
home:'home'
}
}
Option
option.hd
option.fastClick
option.library
option.dynamicImport
option.dll
option.hardSource
option.pwa
option.dva
option.locale
option.polyfills
option.routes
option.antd
修改步骤
- 修改umi-plugin-locale 中的package.json中的name属性的值为:umi-plugin-locale-xxg
- 修改umi-plugin-react中的package.json中的name属性值为:umi-plugin-react-xxg
修改dependencies依赖umi-plugin-locale为umi-plugin-locale-xxg
修改src/plugins/locale.js 内容为 export default from 'umi-plugin-locale-xxg'; - 执行yarn run build
- 分别定位到umi-plugin-locale、umi-plugin-react 执行npm publish
- 项目中修改package中umi-plugin-react为umi-plugin-react-xxg 并修改config的配置umi-plugin-react为umi-plugin-react-xxg