-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live reloading with custom JS #62
Comments
Hi there! Thanks! If you are trying to load a source (not bundled) file in However if this file is bundled somewhere else outside I think having watcher.on('change', (filePath: string) => {
const target = path.join(output, path.relative(projectPath, filePath))
this.copyFile(filePath, target)
}) The manual test would be adding a file to |
Great tip, that did it! @cezaraugusto I've tested and submitted a PR for here and updated docs, linked above. |
Fixed by #64 |
I have a custom JS script I'm separately building and including in my extension (outside of webpack).
If I include it in
./scripts/
, I get a$RefreshSig$ is not defined
error as I believe the webpack processing on top is causing a conflict.If I include it in
./public/
, everything works great, but live reloading doesn't work and I have to restart the browser fully every time my script changes.Ideally, I'd like for my custom JS (and other assets like images) to refresh without restarting the browser or throwing the webpack error.
No worries if out of scope, just figured I'd ask if there's an existing option or a bug I'm hitting – I could feasibly work around this.
Thank you for the awesome tool!
The text was updated successfully, but these errors were encountered: