Skip to content

Commit

Permalink
chore: release v0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jan 3, 2023
1 parent 781bc9b commit aade24d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.4.3

# Background

### Patches

- Fix dynamicImports loose right assets info.(Vite's intenral logic cause it. So we define the order for us plugin).

## 0.4.2

# Background
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,18 @@ export default defineConfig({

> Can i generate multiple compressed assets with difference compression algorithm?
- Yes, you can see the unit test case.
```js
import { defineComponent } from 'vite'
import { compression } from 'vite-plugin-compression2'

export default defineComponent({
plugins: [
// ...your plugin
compression(),
compression({ algorithm: 'br', deleteOriginalAssets: true })
]
})
```

### LICENSE

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-compression2",
"version": "0.4.2",
"version": "0.4.3",
"description": "compress souce file by stream, use it in vite.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit aade24d

Please sign in to comment.