wasm-image-optimization 1.2.29 → 1.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -83,7 +83,10 @@ To use Vite, the following settings are required
83
83
  import wasmImageOptimizationPlugin from "wasm-image-optimization/vite-plugin";
84
84
 
85
85
  export default defineConfig(() => ({
86
- plugins: [wasmImageOptimizationPlugin()],
86
+ plugins: [
87
+ wasmImageOptimizationPlugin(),
88
+ //wasmImageOptimizationPlugin("build/client/assets") // optional: assetsPath
89
+ ],
87
90
  }));
88
91
  ```
89
92
 
@@ -91,7 +94,7 @@ export default defineConfig(() => ({
91
94
 
92
95
  - Cloudflare workers
93
96
  `import { optimizeImage } from 'wasm-image-optimization';`
94
- - Next.js (Webpack)
97
+ - Next.js (webpack)
95
98
  `import { optimizeImage } from 'wasm-image-optimization/next';`
96
99
  - ESM (import base) & Deno Deploy
97
100
  `import { optimizeImage } from 'wasm-image-optimization';`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wasm-image-optimization",
3
3
  "description": "Optimize images with wasm on edge runtime",
4
- "version": "1.2.29",
4
+ "version": "1.2.30",
5
5
  "scripts": {
6
6
  "test": "yarn ts-node test",
7
7
  "lint:fix": "eslint --fix src/ && prettier -w src",