Home
Sign Up
Sign In
V2EX
›
问与答
浏览器扩展页面只能写在 content.js ? 那多个扩展的函数如何重用啊
pdog18
·
Aug 31, 2023
· 1279 views
This topic created in 1011 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
·
5497 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms ·
UTC 03:46
·
PVG 11:46
·
LAX 20:46
·
JFK 23:46
♥ Do have faith in what you're doing.
❯