From 42ada1eefe2047b1e79b51acbaf99fc1b7776af8 Mon Sep 17 00:00:00 2001 From: kanno <812137533@qq.com> Date: Tue, 30 Jan 2024 08:52:12 +0300 Subject: [PATCH] chore: release v0.12.0 --- CHANGELOG.md | 8 ++++++++ README.md | 15 +++++++++++++++ package.json | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5396040..5506ec9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.12.0 + +# Background + +### Improves + +- expose new plugin `cp`.(a tarball helper) + ## 0.11.0 # Background diff --git a/README.md b/README.md index 53a124e..786b65e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index c18c80e..9ec83ed 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-plugin-compression2", "packageManager": "yarn@3.6.3", - "version": "0.11.0", + "version": "0.12.0", "description": "a fast vite compression plugin", "main": "dist/index.js", "types": "dist/index.d.ts",