@aligov/plugin-gff-h5-sdk
v0.2.2
Published
gff-SDK H5工程构建插件
Downloads
48
Maintainers
Keywords
Readme
@aligov/plugin-gff-h5-sdk
Gff H5 Rax SDK 构建插件,基于 build-script
安装
$ npm i @aligov/plugin-gff-h5-sdk -D
配置
- build.json
{
"plugins": [
[
"@aligov/plugin-gff-h5-sdk",
{
"configFile": "src/sdkConfig.js"
}
]
]
}
- sdkConfig.js
exports.sdkPackages = [
{
sdkName: "abc-sdk", // sdk名,代码中会以@abc-sdk为alias
pkgName: "@group/abc-sdk", // sdk npm包名
extensions: {
// 页面覆写
pages: [
// {
// origin: '@gff-sdk/pages/detail',
// target: 'pages/detail',
// },
],
// 组件覆写
components: [
// {
// origin: '@gff-sdk/components/skeleton',
// target: 'components/skeleton'
// }
],
},
},
];