Comments (4)
I was able to switch to it using this commit: intentionally-left-nil/des@1269fa2
from chrome-extension-webpack-boilerplate.
The idea is great, I like it.
How do you guys think that this should be implemented?
I tried this implementation #45 but it removes the hot reloading, which is one thing that I want on this boilerplate.
I tried to implement it, just to test, like this: https://gist.github.com/samuelsimoes/80f7fe21814fec023008f77730a1623c
but it was causing full reloads when I changed my code (this on popup), even when not related to content scripts, which I believe that was caused because the extension reload.
Another problem was that every time that I start the server, I got this error: Loading Extension. failed to load extension from: XXXXX. Manifest file is missing or unreadable.
from chrome-extension-webpack-boilerplate.
Thanks for taking a look!
Yes, the new code causes the whole extension to reload when making a change. For my needs, this is an acceptable dev environment. It hot-reloads in the sense that when I change code, the change is reflected in the plugin. It does require a refresh, compared to the old reloader.
As far as the second issue, I got that too, and I fixed it by removing the CleanWebpackPlugin
plugin.
I have that fixed in my master branch, let me update this PR to include it too.
from chrome-extension-webpack-boilerplate.
As far as what it fixes though: With the old hot-reloader, when I would change code, the react code wouldn't actually update properly, or it would cause react errors. Unless something is changed, the hot-reloading isn't working at all with the current setup
from chrome-extension-webpack-boilerplate.
Related Issues (20)
- Support for firefox and Edge?
- Is unsafe-eval in manifest.json needed? HOT 3
- Unexpected token at nullish coalescing
- Tailwind Integration
- How to inject custom components to content scripts? HOT 1
- Content Script not working on https websites when using dev server HOT 2
- How to access background script public function HOT 3
- Serious merging issues HOT 2
- uncaught referenceerror require is not defined
- How to properly include dependencies? HOT 1
- Resaving source files (with hot reload enabled) causes loss of manifest file HOT 6
- mafifest.js options_page has been deprecated in favor of options_ui
- Relaxed content security policy HOT 1
- Enabling HMR for content scripts HOT 3
- Auto hot reloading with HTML files?
- Looking for contributors
- Npm run start - Source files which are compiled via copy-webpack-plugin are not copied/rendered to build. HOT 1
- Chrome web package
- process.env.npm_package_description is no more available with npm v7 HOT 1
- Keep accidentally committing Mac files locally
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 chrome-extension-webpack-boilerplate.