@quicktvui/web-cli 1.0.0-beta.10 → 1.0.0-beta.11
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/lib/entry-package.js +6 -8
- package/package.json +1 -1
package/lib/entry-package.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @quicktvui/web-cli - web entry (package)
|
|
2
2
|
// 此文件由 CLI 自动加载,使用 @quicktvui/web-renderer 包
|
|
3
|
-
// 主入口路径通过
|
|
3
|
+
// 主入口路径通过 webpack 多入口配置自动加载,无需在此处 import
|
|
4
4
|
//
|
|
5
|
-
// 初始化流程参考 main-web.js
|
|
5
|
+
// 初始化流程参考 main-web.js
|
|
6
6
|
|
|
7
|
-
console.log('[Web Renderer] === Starting initialization ===')
|
|
7
|
+
console.log('[Web Renderer] === Starting initialization (package) ===')
|
|
8
8
|
|
|
9
9
|
// 直接从 @quicktvui/web-renderer 导入所有需要的函数
|
|
10
10
|
import {
|
|
@@ -64,14 +64,12 @@ styleEl.textContent = `
|
|
|
64
64
|
document.head.appendChild(styleEl)
|
|
65
65
|
console.log('[Web Renderer] Global CSS reset injected for Android-compatible layout')
|
|
66
66
|
|
|
67
|
-
//
|
|
68
|
-
console.log('[Web Renderer] Importing main module...')
|
|
69
|
-
import(__QUICKTVUI_MAIN_ENTRY__)
|
|
67
|
+
// 注意:主入口文件已通过 webpack 多入口配置自动加载,无需在此处 import
|
|
70
68
|
|
|
71
|
-
// Step
|
|
69
|
+
// Step 6: Start the engine
|
|
72
70
|
console.log('[Web Renderer] Starting engine...')
|
|
73
71
|
startWebEngine(engine, APP_NAME)
|
|
74
72
|
|
|
75
73
|
setTimeout(() => {
|
|
76
74
|
console.log('[Web Renderer] === Initialization complete ===')
|
|
77
|
-
}, 1000)
|
|
75
|
+
}, 1000)
|