Home
Sign Up
Sign In
V2EX
›
问与答
浏览器扩展页面只能写在 content.js ? 那多个扩展的函数如何重用啊
pdog18
·
Aug 31, 2023
· 1310 views
This topic created in 1024 days ago, the information mentioned may be changed or developed.
扩展
content
函数
重用
1 replies
•
2023-08-31 21:56:14 +08:00
1
Pipecraft
Aug 31, 2023
1
共用的函数单独发布到 npm 。
各个浏览器扩展项目依赖这个共用模块。
用 esbuild 或 rollup 把源代码打包成 content.js 。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1143 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 55ms ·
UTC 17:29
·
PVG 01:29
·
LAX 10:29
·
JFK 13:29
♥ Do have faith in what you're doing.
❯