Comments (2)
Really interested to know why, too! What's more, background scripts make extensions pretty laggy in some cases: https://stackoverflow.com/questions/56500742/why-is-my-google-chrome-extensions-popup-ui-laggy-on-external-monitors-but-not
For reference, here's the section about this in this repo wiki: https://github.com/rubenspgcavalcante/webpack-extension-reloader/wiki/General-Information#wcer-e2
from webpack-extension-reloader.
I bumped into same problem and was not actually notified that the background page was missing from manifest...because I didn't provide the optional manifest option.
@nicooprat Really interested to know why
The code that is running in the extension pages is actually really simple.
wer
uses the following template that is injected into all files matching the entries
option.
webpack-extension-reloader/src/middleware/wer-middleware.raw.ts
Lines 39 to 89 in 4f9aa5e
You can see that the background script connects to WebSocket
instance, and the content scripts and extension pages connect to the background script.
This makes sense as there is only one websocket connection to manage, and the background script takes care of reloading any tabs that have changed content scripts running in them.
from webpack-extension-reloader.
Related Issues (20)
- Unexpected invalid url on key press in console
- Getting TypeScript errors in the type definitions file HOT 2
- Reloading the New Tab Page HOT 2
- Not working with [email protected] HOT 5
- When manifest provided, won't reload all scripts
- Crashes when `output.filename` in `webpack.config.js` is a function
- Background page (not script!) unsupported?
- Is this still maintained? HOT 3
- CSS reloading
- Check for background script breaks for more complicated output.filename rules
- an add manifest configuration array like: [base-manifest.json,firefox-manifest.json,chrome-manifest.json]
- EADDRINUSE when using with vue-cli-plugin-browser-extension HOT 5
- Cannot work with typescript config file webpack.ts
- Manifest V3 Service worker registration failed HOT 17
- background.html instead of background.js error
- get error with wepback 5 HOT 1
- Hot reload only the active tab. HOT 1
- Is there a way to disable the insertion of the webextension-polyfill into the scripts?
- Service worker registration failed. Status code: 10 HOT 1
- I would like to know if there is a webpack5 compatible version of the plugin.
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 webpack-extension-reloader.