UNPKG

747 BJavaScriptView Raw
1/*
2|--------------------------------------------------------------------------
3|
4| 生成 hel-meta.json
5|
6|--------------------------------------------------------------------------
7*/
8const path = require('path');
9const helDevUtils = require('hel-dev-utils');
10const packageJson = require('../package.json');
11const subApp = require('../config/subApp');
12
13// npm run build_for_cust 设定的 HEL_APP_HOME_PAGE 值指向本地 http-server 静态服务 host
14// 该设定会让构建产物时生成的 publicPathOrUrl 优先使用此值,而非 subApp.getPublicPathOrUrl('http://localhost:3000/') 传递的值
15helDevUtils.extractHelMetaJson({
16 appHomePage: subApp.homePage,
17 buildDirFullPath: path.join(__dirname, '../hel_dist'),
18 packageJson,
19});