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

Add configuration to enable react-devtools? #179

Open
zeroarst opened this issue Jul 3, 2023 · 0 comments
Open

Add configuration to enable react-devtools? #179

zeroarst opened this issue Jul 3, 2023 · 0 comments

Comments

@zeroarst
Copy link

zeroarst commented Jul 3, 2023

Looks like the only way to make it works is to install standalone react-devtools, and then add the script to head of the index.html file.
<script src="http://localhost:8097"></script>

And add the policy to manifest.json.

"content_security_policy": {
  "extension_pages": "script-src 'self' http://localhost:*;"
}

refer to https://developer.chrome.com/docs/extensions/migrating/improve-security/#remove-unsupported-csv

Instead of manually adding it and have to remember to remove it in production, is there any way to configure that in webpack? I am pretty new to webpack..

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

No branches or pull requests

1 participant