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.
44 lines
1.2 KiB
44 lines
1.2 KiB
|
3 weeks ago
|
|
||
|
|
import { BuildPlugin } from '../@types';
|
||
|
|
|
||
|
|
export const load: BuildPlugin.load = function() {
|
||
|
|
console.log('cocos-build-template load');
|
||
|
|
};
|
||
|
|
|
||
|
|
export const unload: BuildPlugin.load = function() {
|
||
|
|
console.log('cocos-build-template unload');
|
||
|
|
};
|
||
|
|
|
||
|
|
export const configs: BuildPlugin.Configs = {
|
||
|
|
'*': {
|
||
|
|
hooks: './hooks',
|
||
|
|
doc: 'editor/publish/custom-build-plugin.html',
|
||
|
|
options: {
|
||
|
|
isBiliGame: {
|
||
|
|
label: '导出为bilibili小游戏',
|
||
|
|
description: '是否导出为bilibili小游戏?(只在构建微信小游戏生效)',
|
||
|
|
default: true,
|
||
|
|
render: {
|
||
|
|
ui: 'ui-checkbox',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
biliGameAppId: {
|
||
|
|
label: '小游戏AppId',
|
||
|
|
description: '小游戏AppId)',
|
||
|
|
render: {
|
||
|
|
ui: 'ui-input',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
biliGameVersion: {
|
||
|
|
label: '游戏版本号(默认1.0.0)',
|
||
|
|
description: '游戏版本号',
|
||
|
|
render: {
|
||
|
|
ui: 'ui-input',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export const assetHandlers: BuildPlugin.AssetHandlers = './asset-handlers';
|