museL/wxappUnpacker-master

大神,分包解包还是会报错 $gwx1 is not defined

Opened this issue · 0 comments

大神,分包解包还是会报错 $gwx1 is not defined
报错信息
`Guess wxss(first turn)...

E:\3yuanma\weixin\wxappUnpacker-master\node_modules\vm2\lib\main.js:214
throw this._internal.Decontextify.value(e);
^
ReferenceError: $gwx1 is not defined
at vm.js:3:3
at Script.runInContext (vm.js:134:20)
at VM.run (E:\3yuanma\weixin\wxappUnpacker-master\node_modules\vm2\lib\main.js:208:72)
at runVM (E:\3yuanma\weixin\wxappUnpacker-master\wuWxss.js:145:4)
at runOnce (E:\3yuanma\weixin\wxappUnpacker-master\wuWxss.js:179:25)
at Array.preRun (E:\3yuanma\weixin\wxappUnpacker-master\wuWxss.js:339:1)
at CntEvent.decount (E:\3yuanma\weixin\wxappUnpacker-master\wuLib.js:17:43)
at ioLimit.runWithCb (E:\3yuanma\weixin\wxappUnpacker-master\wuLib.js:81:11)
at agent (E:\3yuanma\weixin\wxappUnpacker-master\wuLib.js:54:14)
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:54:3)`

wxss文件能在分包文件page-frame.js中找到

请教大神怎么从page-frame.js中提取wxss

类似

setCssToHead([])();setCssToHead([])();
wxAppCode['/game/pages/gameinvite/gameinvite.wxss'] = setCssToHead(["body{ width:100%; background:#fef0f6; }\n.",[1],"markimg{ width:",[0,60],"; height:",[0,60],"; padding:",[0,13],"; box-sizing:border-box; background:rgba(0,0,0,0.2); border-radius:100%; position: fixed; left:",[0,23],"; }\n.",[1],"contentimg{ width:100%; height:",[0,639],"; }\n.",[1],"main{ display:flex; align-items: center; flex-direction: column; }\n.",[1],"contentimga{ width:",[0,415],"; height:",[0,105],"; }\n.",[1],"sh{ height:",[0,245],"; width:98%; margin-top:",[0,58],"; margin-bottom:",[0,43],"; }\n.",[1],"tija{ color:#d2477c; font-size:",[0,32],"; position: relative }\n.",[1],"tija::before{ position:absolute; content:\x22\200b\x22; width:",[0,226],";