const debugUtils = require('builder-debug-utils');
const debugUtils.generateInjectCodePath({
target: 'Mini',
mode: 'Preview',
compilePlugin: false,
}); // /Users/foo/bar
tiny-cli --injectCodePath /Users/foo/bar
/offline/assets_map - 用于存储构建脚本文本
$TMPDIR/builder_debug_output_v2 - 用于作为 tiny-cli injectCodePath 入参
API
- 检查更新
比较本地与服务端资源 sha256 是否相同,若不同更新本地资源
const injectCodePath = await updateInjectCodeAssets();
await generateInjectCode({
mode: 'Remotex',
});
generateInjectCodeSync({
mode: 'Remotex',
});
await generateInjectCodePath({
mode: 'Remotex',
});
generateInjectCodePathSync({
mode: 'Remotex',
})
await getBoatmanBundlePath();
getBoatmanBundlePathSync();