Skip to content

Commit

Permalink
2.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Feb 2, 2024
1 parent b5e9c0f commit 155a034
Show file tree
Hide file tree
Showing 68 changed files with 125 additions and 105 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.9

- Extended the default options to support the `_astro` directory, as well.

## 2.2.8

- Cleanup
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Function/Function_Directory.directory.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Function/Image.Image-2.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Documentation/Function/Integration.Defaultsharp.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Function/Integration.Integration.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Function/Integration.Merge.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Function/Merge.merge.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/CSS.Type-1.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/CSS.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Interface/Directory.Type.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Image.Type-1.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Image.Type-2.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Image.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Interface/Integration.Type.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Interface_Merge.Generic.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Interface_Merge.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Interface/Map.Type.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Option.Type.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Interface/Parser.Type.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/CSS.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Directory.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/File.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Function_Directory.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/HTML.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Image.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Integration.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Interface_Merge.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/JavaScript.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Map.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Merge.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Module/Middleware.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Option.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/Parser.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Module/SVG.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/File.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/HTML.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/JavaScript.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/Parser.Type-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/Parser.Type-2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/Parser.Type-3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/Parser.Type-4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/Parser.Type-5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Type/SVG.Type.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/CSS.CSS-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/CSS.CSS.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/File._Map.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/HTML.HTML.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Image.Image-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Image.Image.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Image._Map.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Integration.Default.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Integration.Search.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Documentation/Variable/Integration.System.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Integration._Action.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/JavaScript.JavaScript.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Map.Map.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Option.Option.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/Parser.Parser.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Documentation/Variable/SVG.SVG.html

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions Documentation/index.html

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,25 @@ export default {
};
```

to see the full option map visit:
You can see the full option map here:
[Source/Interface/Option.ts](https://github.com/astro-community/AstroCompress/blob/main/Source/Interface/Option.ts)

### Output

By default `AstroCompress` compresses the `outDir` `Astro` directory and the `_astro` generated images directory, if you'd like it to compress a different directory you would have to add it to the `AstroCompress` `Path` option, as well:

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

export default {
integrations: [
Compress({
Path: ["./dist", "./_astro", "./Compress"],
}),
],
};
```

### Adding Multiple Paths

You can add multiple paths to compress by specifying an array as the `Path`
Expand Down
6 changes: 1 addition & 5 deletions Source/Function/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ export default ((...[_Option = {}]: Parameters<Type>) => {
return;
}

console.log(Paths);

if (!Paths.size) {
Paths.add(dir);
}
Paths.add(dir);

if (typeof Cache === "object" && Cache.Search === Search) {
Cache.Search = dir;
Expand Down
1 change: 1 addition & 0 deletions Source/Variable/Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default (await import("../Function/Merge.js")).default(
writable: true,
}) && Plan,
},
Path: ["./_astro"],
} satisfies Type,
);

Expand Down
2 changes: 1 addition & 1 deletion Target/Function/Integration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export declare const Default: Omit<{} & {
JavaScript: "terser";
SVG: "svgo";
};
Path: string;
Path: string[];
Cache: {
Search: string;
Folder: string;
Expand Down
4 changes: 2 additions & 2 deletions Target/Function/Integration.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Target/Variable/Option.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ declare const _default: Omit<{} & {
JavaScript: "terser";
SVG: "svgo";
};
Path: string;
Path: string[];
Cache: {
Search: string;
Folder: string;
Expand Down
2 changes: 1 addition & 1 deletion Target/Variable/Option.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-compress",
"version": "2.2.8",
"version": "2.2.9",
"private": false,
"description": "🗜️ AstroJS compression utilities. Compress HTML, CSS, JavaScript and more!",
"keywords": [
Expand Down Expand Up @@ -41,7 +41,7 @@
"@types/csso": "5.0.4",
"@types/html-minifier-terser": "7.0.2",
"csso": "5.0.5",
"files-pipe": "2.1.6",
"files-pipe": "2.1.7",
"html-minifier-terser": "7.2.0",
"kleur": "4.1.5",
"lightningcss": "1.23.0",
Expand All @@ -50,8 +50,8 @@
"terser": "5.27.0"
},
"devDependencies": {
"astro": "4.2.8",
"typescript-esbuild": "0.3.6"
"astro": "4.3.1",
"typescript-esbuild": "0.3.7"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 155a034

Please sign in to comment.