Skip to content

Commit

Permalink
0.0.11
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
NikolaRHristov committed Jun 14, 2022
1 parent 923aa25 commit 1ff50bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 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.11

- Bug fix

## 0.0.10

- 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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-compress",
"version": "0.0.10",
"version": "0.0.11",
"type": "module",
"description": "🗜️ AstroJS compression utilities. Compress HTML, CSS, JavaScript and more.",
"repository": {
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const pipeAll = async (settings: Options) => {
if (Object.prototype.hasOwnProperty.call(settings, fileType)) {
const setting = settings[fileType];

if (!setting) {
continue;
}

switch (fileType) {
case "css":
await parse(
Expand Down Expand Up @@ -151,7 +155,7 @@ const parse = async (
const writeBuffer = await write(await read(file));

if (!writeBuffer) {
return;
continue;
}

if (fileSizeBefore > Buffer.byteLength(writeBuffer)) {
Expand Down

0 comments on commit 1ff50bd

Please sign in to comment.