@hyext/builder-revues 1.2.2-alpha.4 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -710,7 +710,7 @@ function genEntrys(props) {
|
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
-
const libVersion = "1.0.3
|
|
713
|
+
const libVersion = "1.0.3" ;
|
|
714
714
|
const libCdn = '//a.msstatic.com/huya/hd/h5/static-source/revue/lib';
|
|
715
715
|
|
|
716
716
|
function getLibVersion(builderConfig) {
|
|
@@ -996,6 +996,7 @@ function injectRuntimeLib(releasePath) {
|
|
|
996
996
|
const releaseFrameworkPath = path__default["default"].join(releasePath, 'framework');
|
|
997
997
|
fs__default["default"].copySync(frameworkPath, releaseFrameworkPath);
|
|
998
998
|
injectNpm(path__default["default"].join(releaseFrameworkPath, 'script'), '@revues/web-sdk-core');
|
|
999
|
+
injectNpm(path__default["default"].join(releaseFrameworkPath, 'script'), '@revues/web-frame');
|
|
999
1000
|
// TODO: 这段代码是测试 @revues/js-sdk 增加构建变量去决定执行
|
|
1000
1001
|
// injectNpm(sdkPath, '@revues/js-sdk')
|
|
1001
1002
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyext/builder-revues",
|
|
3
|
-
"version": "1.2.2
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "loler",
|
|
6
6
|
"homepage": "",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"url": "https://git.huya.com/exc/web/revue.git"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@revues/cocos-web-adapter": "1.2.2
|
|
28
|
-
"@revues/code-compiler": "1.2.2
|
|
29
|
-
"@revues/web-
|
|
27
|
+
"@revues/cocos-web-adapter": "1.2.2",
|
|
28
|
+
"@revues/code-compiler": "1.2.2",
|
|
29
|
+
"@revues/web-frame": "1.2.2",
|
|
30
|
+
"@revues/web-sdk-core": "1.2.2",
|
|
30
31
|
"archiver": "^7.0.1",
|
|
31
32
|
"axios": "^1.7.3",
|
|
32
33
|
"chalk": "^2.4.2",
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"@types/ramda": "^0.29.11",
|
|
47
48
|
"terser": "^5.31.0"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "002e556eab25f41c289c2e3db316f3c95dce2360"
|
|
50
51
|
}
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
<meta name="ext-busi-type" content="ext">
|
|
17
17
|
<meta name="ext-build-env" content="{{buildEnv}}">
|
|
18
18
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
19
|
+
<link rel="stylesheet" href="{{sourcePathPrefix}}/framework/script/web-frame.css"></link>
|
|
20
|
+
<script charset="utf-8" src="{{sourcePathPrefix}}/framework/script/web-frame.js"></script>
|
|
19
21
|
<style>
|
|
20
22
|
html,
|
|
21
23
|
body {
|
|
@@ -81,10 +83,6 @@
|
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
</script>
|
|
84
|
-
{{!-- {{#if isProd}}
|
|
85
|
-
<script src="https://fedlib.msstatic.com/fedbasic/hyext-inner/hyext-performance/performance.global.js"></script>
|
|
86
|
-
<script src="https://a.msstatic.com/huya/hd/cdn_libs/performance_report-min.js"></script>
|
|
87
|
-
{{/if}} --}}
|
|
88
86
|
{{#if debug}}
|
|
89
87
|
<script charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/vConsole/3.15.1/vconsole.min.js"></script>
|
|
90
88
|
<script>
|
|
@@ -92,13 +90,12 @@
|
|
|
92
90
|
window.__debug = true
|
|
93
91
|
</script>
|
|
94
92
|
{{/if}}
|
|
93
|
+
{{#if isProd}}
|
|
94
|
+
<script src="https://fedlib.msstatic.com/fedbasic/hyext-inner/hyext-performance/performance.global.js"></script>
|
|
95
|
+
<script src="https://a.msstatic.com/huya/hd/cdn_libs/performance_report-min.js"></script>
|
|
96
|
+
{{/if}}
|
|
95
97
|
<script charset="utf-8" src="{{hyextSDKUrl}}"></script>
|
|
96
98
|
<script charset="utf-8" src="{{sourcePathPrefix}}/framework/script/web-sdk-core.js"></script>
|
|
97
|
-
<link rel="preload" href="{{sourcePathPrefix}}/framework/script/service.js" as="script" onload="__handleLinkLoad()">
|
|
98
|
-
<link rel="preload" href="{{sourcePathPrefix}}/framework/script/view.js" as="script" onload="__handleLinkLoad()">
|
|
99
|
-
<link rel="preload" href="{{sourcePathPrefix}}/framework/css/index.css" as="style" onload="__handleLinkLoad()">
|
|
100
|
-
<link rel="preload" href="./__APP__.js" as="script" onload="__handleLinkLoad()">
|
|
101
|
-
<link rel="preload" href="./pageframe.js" as="script" onload="__handleLinkLoad()">
|
|
102
99
|
</head>
|
|
103
100
|
|
|
104
101
|
<body>
|
|
@@ -106,8 +103,13 @@
|
|
|
106
103
|
<iframe class="service" id="webview-service"></iframe>
|
|
107
104
|
<iframe class="webview" frameborder="0" id="webview-first-view"></iframe>
|
|
108
105
|
</div>
|
|
106
|
+
<link rel="preload" href="{{sourcePathPrefix}}/framework/script/service.js" as="script" onload="__handleLinkLoad()">
|
|
107
|
+
<link rel="preload" href="{{sourcePathPrefix}}/framework/script/view.js" as="script" onload="__handleLinkLoad()">
|
|
108
|
+
<link rel="preload" href="{{sourcePathPrefix}}/framework/css/index.css" as="style" onload="__handleLinkLoad()">
|
|
109
|
+
<link rel="preload" href="./__APP__.js" as="script" onload="__handleLinkLoad()">
|
|
110
|
+
<link rel="preload" href="./pageframe.js" as="script" onload="__handleLinkLoad()">
|
|
109
111
|
{{#if sentryScript}}
|
|
110
|
-
<script charset="utf-8" src="{{sentryScript}}"
|
|
112
|
+
<script charset="utf-8" src="{{sentryScript}}" defer></script>
|
|
111
113
|
{{/if}}
|
|
112
114
|
</body>
|
|
113
115
|
|