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.
- package/README.md +5 -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: [
|
|
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 (
|
|
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