Skip to content

script tags are reformatted which breaks CSP sha hashes #1007

@regular

Description

@regular

Hi! Thanks for this amazing tool! I really enjoy the over-engineeredness of this! (scraping Apple docs)

Here is my problem:

The index.html file I want pwa-asset-generator to modify was created by piping minified browserify output through indexhtmlify and metadataify and my tools add a CSP http-equiv tag containing the sha256 of the inlined Javascript. This all works fine, except that pwa-asset-generator not only modifies the but also pretty-prints the <script> tag, which not only increases the file size, but more importantly, breaks the sha.

I file this as a bug, because I think that changes occurring outside of should not occur.

Thanks for sharing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds verificationBug needs to be verified with reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions