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

react-devtools-inline: Remove css-sourcemap's when bundling for dist #20170

Merged
merged 2 commits into from
Nov 10, 2020

Commits on Nov 5, 2020

  1. react-devtools-inline: Remove css-sourcemap's when bundling for dist

    Bundling CSS source maps both add unnecessary size, but more importantly cause the css to be served as `blob:`'s.
    
    In more restrictive CSP environments this causes react-devtools-inline to fail to load styles.
    
    Confirmed that the fix works by building locally and using built react-devtools-inline in a restrictive CSP environment. Specifically:
    ```
    styleSrc: 'unsafe-inline' https:
    ```
    where previously the following would be required:
    ```
    styleSrc: 'unsafe-inline' https: blob:
    ```
    sean9keenan committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    87a9700 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. trigger build

    sean9keenan committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    fd50558 View commit details
    Browse the repository at this point in the history