diff --git a/README.md b/README.md index b326073..6a8a901 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ $ npm install vite-plugin-compression2 -D ```js import { defineConfig } from 'vite' -import { Compression } from 'vite-plugin-compression2' +import { compression } from 'vite-plugin-compression2' export default defineConfig({ plugins: [ // ...your plugin - Compression() + compression() ] }) ``` diff --git a/package.json b/package.json index 6524b81..84f0c5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-compression2", - "version": "0.1.0", + "version": "0.2.0", "description": "compress souce file by stream, use it in vite.", "main": "dist/index.cjs.js", "types": "dist/index.d.ts",