pixifact-cli 0.19.0 → 0.20.0
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/README.md +1 -1
- package/editor/assets/browserAll-BJUI9ZxT.js +1 -0
- package/editor/assets/capture-CUhA-7Mo.js +1 -0
- package/editor/assets/{captureCompilerScenePreview-BYHGr0JS.js → captureCompilerScenePreview-4K1ehGWd.js} +84 -84
- package/editor/assets/editor-C18Nctzn.js +5 -0
- package/editor/assets/init-B6Wk-3NE.js +1 -0
- package/editor/assets/webworkerAll-iPsb_ehV.js +1 -0
- package/editor/capture.html +2 -2
- package/editor/index.html +2 -2
- package/package.json +2 -2
- package/src/editorServer.ts +30 -8
- package/src/viteTarget.ts +2 -1
- package/editor/assets/browserAll-D2RthxQz.js +0 -1
- package/editor/assets/capture-BGSCjpR1.js +0 -1
- package/editor/assets/editor-DdhHqfDl.js +0 -5
- package/editor/assets/init-BOfNyIRQ.js +0 -1
- package/editor/assets/webworkerAll-C87VP9vG.js +0 -1
package/README.md
CHANGED
|
@@ -126,7 +126,7 @@ Web mode 只需要 `pixifact`,不安装小游戏平台包也能构建。`dev`
|
|
|
126
126
|
|
|
127
127
|
`pixifact dev` 同时自动启用 Bun Inspector,默认监听 `0.0.0.0`,端口由系统分配;项目的 `dev` 脚本直接调用 `pixifact dev` 即可。远程调试时,将 Bun 输出的 WebSocket 或浏览器调试链接中的 `0.0.0.0` 替换为开发电脑的局域网 IP,保留端口和路径。若启动 Bun 时已指定 `--inspect`、`--inspect-brk` 或 `--inspect-wait`(包括自定义地址),CLI 使用已有调试参数。
|
|
128
128
|
|
|
129
|
-
CLI 使用 Vite 完成 env、TypeScript、tree-shaking、watch、静态资源和产物生命周期;Pixifact 插件负责 Scene 编译、当前平台虚拟模块、Pixi manifest
|
|
129
|
+
CLI 使用 Vite 完成 env、TypeScript、tree-shaking、watch、静态资源和产物生命周期;Pixifact 插件负责 Scene 编译、当前平台虚拟模块、Pixi manifest、资源与代码分包、原生配置和包体检查。资源使用 PixiJS `Assets`;代码分包在 Vite 8 配置中声明 `pixifact({ codePackages: { game: 'src/game.ts' } })`,业务使用 `import('./game')`,由构建自动补上原生分包加载。完整用法见[微信代码分包](../../docs/zh/wechat-minigame.md#代码分包)。
|
|
130
130
|
|
|
131
131
|
完整配置见 [微信小游戏构建](https://github.com/hxg2050/pixifact/blob/main/docs/zh/wechat-minigame.md) 和 [抖音小游戏构建](https://github.com/hxg2050/pixifact/blob/main/docs/zh/douyin-minigame.md),可运行三端示例见 [wechat-minigame-demo](https://github.com/hxg2050/pixifact/tree/main/sample-projects/wechat-minigame-demo)。
|
|
132
132
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,b as t,f as n,g as r,m as i,p as a,v as o}from"./captureCompilerScenePreview-4K1ehGWd.js";import"./init-B6Wk-3NE.js";t.add(e),t.mixin(o,r),t.add(i),t.add(a),t.mixin(o,n);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,E as t,S as n,h as r,i,n as a,r as o,t as s,w as c}from"./captureCompilerScenePreview-4K1ehGWd.js";window.capturePixifactScene=async l=>{let[u,d]=await Promise.all([c(),t(l)]),f=new a,p,m=new r,h=!1;try{return p=await o({cache:f,document:{template:e(d.source),sceneInterfaces:{}},projectTree:n(u),scenePath:l}),await m.init({width:p.width,height:p.height,backgroundAlpha:0,antialias:!0,autoStart:!1,resolution:1}),h=!0,m.stage.addChild(p.root),{scenePath:d.path,revision:d.version,width:p.width,height:p.height,dataUrl:await s(m,p)}}finally{h&&(m.stage.removeChild(p.root),m.destroy({removeView:!0},{children:!1})),i(p),await f.clear()}};
|