Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Nov 28, 2024
1 parent 2b9a0ab commit 4853f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

# NOTE

1. **Important:** It is vital that this is the last integration in the `integrations`
property. Otherwise some files might not get compressed.
1. **Important:** It is important that this is the last integration in the `integrations`
property to ensure all the generated files are compressed.
2. **Note:** This only works for static exports, SSR does not export assets that can
be compressed ahead of time so you need to solve it with middleware. See [this](https://github.com/sondr3/astro-compressor/issues/13#issuecomment-1739721634)
for more context and a partial solution.
Expand All @@ -45,7 +45,7 @@ yarn astro add astro-compressor
pnpm astro add astro-compressor
```

Then, restart the dev server by typing `CTRL-C` and then `npm run dev` in the terminal window that was running Astro.
To compress your files, simply run `pnpm build` and look for the compression messages in the build log.

# Usage

Expand Down

0 comments on commit 4853f21

Please sign in to comment.