阶段2:拆分为 ES Module + Rollup 构建,重写 README

- src/ 下拆分为入口/语言包/默认配置/主函数/工具模块,主函数整体搬入零改动
- rollup 打包 UMD(moeplayer.js + moeplayer.min.js),用户使用方式不变
- 库拷贝逻辑移至 scripts/copy-libs.js
- README 重写:中文文档、快速开始、路线图、致谢原作者
- index.html 增加皮肤切换演示(默认/红色/西瓜)
This commit is contained in:
王阳
2026-07-21 11:16:25 +08:00
parent 5609532c80
commit 159603341e
19 changed files with 15507 additions and 7406 deletions
+3 -2
View File
@@ -4,7 +4,7 @@
"description": "一款中文友好的网页视频播放器(fork 自 ckplayer X3),支持 mp4/flv/m3u8/ts,可搭配 Moodle media 插件使用",
"license": "MIT",
"scripts": {
"build": "node scripts/build.js"
"build": "rollup -c && node scripts/copy-libs.js"
},
"dependencies": {
"flv.js": "^1.6.2",
@@ -12,6 +12,7 @@
"mpegts.js": "^1.8.0"
},
"devDependencies": {
"terser": "^5.0.0"
"@rollup/plugin-terser": "^1.0.0",
"rollup": "^4.62.2"
}
}