Skip to content

Commit

Permalink
0.0.4
Browse files Browse the repository at this point in the history
- Fixes #1
  • Loading branch information
NikolaRHristov committed May 10, 2022
1 parent 9598cb7 commit e63c5e6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 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.4

- Bug fix

## 0.0.3

- Updates README.md
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Then, apply this integration to your `astro.config.*` file using the

**astro.config.mjs**

```ts
```js
import { defineConfig } from "astro/config";
import compress from "astro-compress";

Expand All @@ -57,7 +57,7 @@ export default defineConfig({

## Getting started

The utility should now automatically compress all your CSS and HTML files in the
The utility should now automatically compress all your CSS, HTML and JavaScript files in the
dist folder.

You can override any of the default options from the configurations of:
Expand All @@ -68,7 +68,7 @@ You can override any of the default options from the configurations of:

or disable them entirely:

```ts
```js
import { defineConfig } from "astro/config";
import compress from "astro-compress";

Expand All @@ -86,5 +86,5 @@ export default defineConfig({
[astro-compress]: https://npmjs.org/astro-compress
[csso]: https://npmjs.org/csso
[html-minifier-terser]: https://npmjs.org/html-minifier-terser
[terser]: https://npmjs.org/html-minifier-terser
[terser]: https://npmjs.org/terser
[astro-integration]: https://docs.astro.build/en/guides/integrations-guide/
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.3",
"version": "0.0.4",
"type": "module",
"description": "AstroJS compression utilities. Compress HTML, CSS, JavaScript and more.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const minify = async (
await fs.promises.writeFile(
file,
// @ts-ignore
terserMinify(file, options),
await terserMinify(file, options).code,
"utf-8"
);

Expand Down

0 comments on commit e63c5e6

Please sign in to comment.