Comments (4)
My extension on a list of pages (in options) redirects to that redirect.html
but I want that page to be able to communicate with my extension (sendMessage --> received in background.js), that's why this redirect.js
exists
(in a nutshell: user types in XYZ.com, gets redirect to the HTML, redirect makes the user do some stuff and then redirects back to the XYZ)
Tried to use content-scripts and background-script as .html but both approaches weren't really working for my so I outsourced
from browser-extension-template.
"watch": "parcel watch source/*.js source/*.html source/*.css source/manifest.json --dist-dir distribution --no-cache --no-hmr",
Instead of this you can only the files that are not found through manifest.json
. In your case:
parcel watch source/manifest.json source/redirect.*
Including every JS and CSS file that's already included might cause issues in Parcel’s dependency resolution.
from browser-extension-template.
Closing this one myself face-palm. Sometimes I'm too fast to creating issues.
Changed the package.json
watch task:
"watch": "parcel watch source/*.js source/*.html source/*.css source/manifest.json --dist-dir distribution --no-cache --no-hmr",
Maybe you want to add this to the documentation? I think could be helpful for some people :)
from browser-extension-template.
redirect.html and redirect.js but they are not compiled to /distribution
What are those files? How do you use them?
from browser-extension-template.
Related Issues (20)
- Content scripts injected via chrome.scripting API HOT 2
- Release workflow requires undocumented write access to repository
- Issue with using import in content scripts HOT 5
- importing Image not working from content script HOT 3
- Need to restart the extension to see changes HOT 9
- Unsafe construction of an any type value. HOT 5
- Linting errors after converting to TypeScript HOT 5
- Source maps don't work by default HOT 4
- Document how to convert the project to use TypeScript
- Meta: Firefox deployment failed HOT 2
- Firefox support discussion (MV2, MV3) HOT 15
- erroneous issue, please delete sorry HOT 1
- Chrome Web Store rejection for obfuscated code HOT 4
- Lint css error, fetch tags error, duplicated addon once published HOT 1
- "Template cleanup" workflow broken HOT 1
- Include "popup" in template HOT 1
- Icon greyed out and no functionality HOT 5
- Allow retriggering a store submission HOT 1
- Nested folders in /src HOT 2
- Revisit external sourcemap support, it might be possible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-extension-template.