Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Feb 12, 2024
1 parent 8ddd294 commit f5a508c
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ Then, apply this integration to your `astro.config.*` file using the
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default { integrations: [Compress()] };
export default { integrations: [(await import("astro-compress")).default()] };
```

## Getting started
Expand Down Expand Up @@ -114,11 +112,9 @@ or disable them entirely:
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
CSS: false,
HTML: false,
Image: false,
Expand All @@ -140,11 +136,9 @@ directory you would have to add it to the `AstroCompress` `Path` option, as
well:

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
Path: ["./dist", "./_astro", "./Compress"],
}),
],
Expand All @@ -159,11 +153,9 @@ variable.
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
Path: ["./Target", "./Build"],
}),
],
Expand All @@ -177,11 +169,9 @@ You can also provide a map of paths for different input output directories.
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
Path: new Map([["./Source", "./Target"]]),
}),
],
Expand All @@ -193,11 +183,9 @@ Or an array of the two:
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
Path: [
// Compress Target
"./Target",
Expand All @@ -218,11 +206,9 @@ match on file names:
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
Exclude: [
"File.png",
(File: string) =>
Expand All @@ -241,11 +227,9 @@ value is `2`, but you can set it to `0` if you don't want to see debug messages:
**`astro.config.ts`**

```ts
import Compress from "astro-compress";

export default {
integrations: [
Compress({
(await import("astro-compress")).default({
Logger: 0,
}),
],
Expand Down

0 comments on commit f5a508c

Please sign in to comment.