Skip to content

Commit

Permalink
chore: release v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jan 30, 2024
1 parent 9b31ead commit 42ada1e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.12.0

# Background

### Improves

- expose new plugin `cp`.(a tarball helper)

## 0.11.0

# Background
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ export default defineComponent({
there are write (delete) operations on the bundle inside the plugin. So you should ignore the compressed chunk :) If you want delete
the original assets you also follow the way.

> Can i create a tarball for all of chunks after compressed?
- Yes, you can import `cp` plugin from this package(>=12.0.0)
```js
import { defineComponent } from 'vite'
import { compression, cp } from 'vite-plugin-compression2'

export default defineComponent({
plugins: [
// ...your plugin
compression(),
cp({ dest: './xzy' })
]
})

```

### Others

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vite-plugin-compression2",
"packageManager": "[email protected]",
"version": "0.11.0",
"version": "0.12.0",
"description": "a fast vite compression plugin",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 42ada1e

Please sign in to comment.