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

请问extension_dist的作用是? #5

Closed
298068845 opened this issue Mar 20, 2020 · 2 comments
Closed

请问extension_dist的作用是? #5

298068845 opened this issue Mar 20, 2020 · 2 comments

Comments

@298068845
Copy link

你好,研究这个项目代码好久了,实现自动化录制的思路是在页面加载的时候document start启用content_script,然后调用injected与background通讯,再通过background调用recordding录制页面。
我理解的应该没问题吧?
但是项目里startChrome里面配置的扩展程序路径是extension_dist而不是chrome extension,这里不太理解,而且看extension_dist里的代码都是混淆过的

@BlackHole1
Copy link
Contributor

extension_dist项目是被编译后的,其源代码是 chrome-extension。相关的编译 script 在: https://github.com/alo7/rebirth/blob/master/src/package.json#L11

相关 webpack 配置是: https://github.com/alo7/rebirth/blob/master/src/webpack.config.js#L35-L38

extension_dist 目录里只有 background.jscontent_script.jsinjected.js 是编译的结果,其他的background.htmlkey.pemmanifest.json 则不是。

项目相关文章: https://www.bugs.cc/p/rebirth-principle-analysis/

v2ex相关的解释: https://www.v2ex.com/t/625882#r_8288127

@BlackHole1
Copy link
Contributor

最近我更新下 README.md 方便理解

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

2 participants