kipsong / vite-chrome-extension Goto Github PK
View Code? Open in Web Editor NEW又快又爽的开发 Chrome 扩展程序
License: MIT License
又快又爽的开发 Chrome 扩展程序
License: MIT License
在团队内部中,我们同样在这个基础之上做了很多改造
比如 contentScript、backgroundScript、tabPage、Popup等不同的Manifest.json中文件依赖的一些文件。
这类问题Vite 并不能根据多路口的方式生成不同的模块规范,可以使用多个脚本去输出:
vite build && rollup -c content.script.ts && rollup -c background.script.ts
hi
i just cloned this repo, installed all dependencies, and then run command: yarn dev
i can see ui from localhost:3000 indeed
but how may i debug extension via chrome, for example the communication between ui part and the background?
i can't find a dir containing manifest.json, so i can't add extension to chrome i think.
chrome插件是个多页应用,应该如何配置呢,示例只有对于单页应用的使用
我在配置options.html页面的时候,发现一个问题:
通常,在使用options页面的时候,会打开一个新的tab,结尾是.html,但是在这种情况下,react-router-dom无法正常运行, /xxxdir/xxx.html/routepath无法正常使用
我也尝试了官方针对多页应用的解决方案,没有效果,因为他那种情况下xxx.html是不会显示在路径中的,
请问您是如何解决的,可否提供一些思路? (我发现有的插件是用锚点实现的类似切换路由的效果)
如果您没有在options页面没有使用router的话,我再会去eact-router-dom提issue
非常感谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.