Skip to content

Commit

Permalink
docs: document new features in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Mar 13, 2024
1 parent d181e30 commit a8beb9a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ const rootDir = new URL('.', import.meta.url).pathname
export default defineConfig({
integrations: [
shield({
// Enables SRI hashes generation for statically generated pages
enableStatic_SRI: true, // true by default

// Enables a middleware that generates SRI hashes for dynamically
// generated pages
enableMiddleware_SRI: false, // false by default

// This is the path where we'll generate the module containing the SRI
// hashes for your scripts and styles. There's no need to pass this
// parameter if you don't need this data, but it can be useful to
Expand Down Expand Up @@ -124,10 +131,6 @@ export const perPageSriHashes =
## Known limitations
- For now, this integration only works for generated static content (the
exported subresource integrity hashes could be used in dynamic contexts, but
that does not cover the whole SSG use case)
- The SRI hashes will be regenerated only when running `astro build`. This means
that if you need them to be up to date when you run `astro dev`, then you will
have to manually run `astro build`.
Expand Down

0 comments on commit a8beb9a

Please sign in to comment.