Skip to content

Commit

Permalink
0.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Aug 9, 2022
1 parent 04fe713 commit 0aa6056
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.17

- Refactor

## 0.0.16

- Bug fix
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-compress",
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"description": "🗜️ AstroJS compression utilities. Compress HTML, CSS, JavaScript and more.",
"repository": {
Expand Down Expand Up @@ -33,6 +33,7 @@
"dependencies": {
"csso": "5.0.4",
"fast-glob": "3.2.11",
"deepmerge-ts": "4.2.1",
"html-minifier-terser": "6.1.0",
"sharp": "0.30.7",
"svgo": "2.8.0",
Expand Down
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { AstroIntegration } from "astro";
import FastGlob from "fast-glob";
import fs from "fs";
import { deepmerge } from "deepmerge-ts";

import Options from "./options";
import IMG from "./options/img";

Expand Down Expand Up @@ -279,7 +281,7 @@ export default function createPlugin(
processScripts: ["module"],
quoteCharacter: "",
removeAttributeQuotes: true,
removeComments: true,
removeComments: false,
removeEmptyAttributes: false,
removeEmptyElements: false,
removeOptionalTags: false,
Expand Down Expand Up @@ -343,7 +345,7 @@ export default function createPlugin(
logger: 2,
};

const _options = Object.assign(defaultOptions, integrationOptions);
const _options = deepmerge(defaultOptions, integrationOptions);

_options.path = _options.path?.endsWith("/")
? _options.path
Expand Down

0 comments on commit 0aa6056

Please sign in to comment.