Latest create-react-app doesn't let you build chrome extensions
SoorajChandran opened this issue · comments
With the new create-react-app
the index.html
in the build folder have an inline script.
Problems:
Not able to build Chrome extensions using create-react-app
. Chrome blocks the execution of the inline scripts with the following message:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-GgRxrVOKNdB4LrRsVPDSbzvfdV4UqglmviH9GoBJ5jk='), or a nonce ('nonce-...') is required to enable inline execution.
Is there any way around this?
Put INLINE_RUNTIME_CHUNK=false
to your .env files