Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiong2019 opened this issue Mar 11, 2019 · 0 comments
Open

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

xiong2019 opened this issue Mar 11, 2019 · 0 comments

Comments

@xiong2019
Copy link

大神,分包解包还是会报错 $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],";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant