Skip to content
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

Fix overwriting compiled manifest #890

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vwheezy
Copy link

@vwheezy vwheezy commented Mar 29, 2024

Fixes issue 628 in webpack-webextension-plugin

The CopyPlugin copies over the original manifest.json, overwriting the compiled version on all recompiles in dev/watch mode.

@vwheezy
Copy link
Author

vwheezy commented Mar 29, 2024

The patch I was given pushed to compiledFiles without changing the variable type. Commit 1844a05 fixes this

@tm1000
Copy link
Member

tm1000 commented Mar 29, 2024

@vwheezy the variable type should still be const. You can push to consts.

image

You'll notice the linter fails now because of this

@vwheezy
Copy link
Author

vwheezy commented Mar 30, 2024

Oops. Sorry about that. I need some best practice tips here: should I just commit a fix or rewrite history?

@tm1000
Copy link
Member

tm1000 commented Mar 30, 2024

You can just commit again. I can squash and merge when it's all done

@vwheezy
Copy link
Author

vwheezy commented Mar 30, 2024

@tm1000 Committed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants