Skip to content

Commit

Permalink
docs: Add example of config override (#358)
Browse files Browse the repository at this point in the history
Signed-off-by: Benny Neugebauer <mail@bennycode.com>
  • Loading branch information
bennycode committed May 15, 2024
1 parent 5cb2b17 commit 5e8eafc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,26 @@ You can override any of the default options from the configurations of:
- [svgo](https://github.com/svg/svgo#configuration)
- [terser](https://github.com/terser/terser#minify-options-structure)

**`astro.config.ts`**

```ts
export default {
integrations: [
(await import("@playform/compress")).default({
CSS: false,
HTML: {
'html-minifier-terser': {
removeAttributeQuotes: false,
},
},
Image: false,
JavaScript: false,
SVG: false,
}),
],
};
```

or disable them entirely:

**`astro.config.ts`**
Expand Down

0 comments on commit 5e8eafc

Please sign in to comment.