builder-debug-utils
v3.0.2
Published
``` const debugUtils = require('builder-debug-utils');
Downloads
181
Readme
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();
- 生成 injectCode
await generateInjectCode({
mode: 'Remotex',
});
generateInjectCodeSync({
mode: 'Remotex',
});
- 生成 injectCodePath
await generateInjectCodePath({
mode: 'Remotex',
});
generateInjectCodePathSync({
mode: 'Remotex',
})
- 获取 boatman 资源路径
await getBoatmanBundlePath();
getBoatmanBundlePathSync();