@metricinsights/pp-dev 0.4.0 → 0.5.0
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 +42 -0
- package/dist/cjs/cli.js +592 -38
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/{index-0adc09ce.js → index-44d9499e.js} +39 -30
- package/dist/cjs/index-44d9499e.js.map +1 -0
- package/dist/cjs/index.js +8 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/package.json +12 -1
- package/dist/cjs/{plugin-ab0651c4.js → plugin-34b9bc89.js} +231 -26
- package/dist/cjs/plugin-34b9bc89.js.map +1 -0
- package/dist/cjs/plugin.js +7 -2
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/esm/cli.js +578 -27
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/{index-1a1d27e5.js → index-4361a6ba.js} +38 -28
- package/dist/esm/index-4361a6ba.js.map +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/package.json +12 -1
- package/dist/esm/{plugin-7db34718.js → plugin-78cbd0b1.js} +228 -26
- package/dist/esm/plugin-78cbd0b1.js.map +1 -0
- package/dist/esm/plugin.js +3 -1
- package/dist/esm/plugin.js.map +1 -1
- package/dist/types/index.d.ts +9 -3
- package/dist/types/plugin.d.ts +67 -2
- package/package.json +12 -1
- package/dist/cjs/index-0adc09ce.js.map +0 -1
- package/dist/cjs/plugin-ab0651c4.js.map +0 -1
- package/dist/esm/index-1a1d27e5.js.map +0 -1
- package/dist/esm/plugin-7db34718.js.map +0 -1
package/README.md
CHANGED
|
@@ -170,6 +170,48 @@ Default: `false`
|
|
|
170
170
|
|
|
171
171
|
Description: Disables SSL certificate validation for proxy requests. Useful for self-signed certificates
|
|
172
172
|
|
|
173
|
+
#### `imageOptimizer`
|
|
174
|
+
|
|
175
|
+
Type: Boolean | Object
|
|
176
|
+
|
|
177
|
+
Default: `true`
|
|
178
|
+
|
|
179
|
+
Description: Enables image optimization for build.
|
|
180
|
+
If you want to disable image optimization, you need to set this option to `false`.
|
|
181
|
+
If you want to customize image optimization, you need to set this option to an object with properties that are described
|
|
182
|
+
in the [vite-plugin-image-optimizer](https://www.npmjs.com/package/vite-plugin-image-optimizer#plugin-options)
|
|
183
|
+
|
|
184
|
+
#### `outDir`
|
|
185
|
+
|
|
186
|
+
Type: String
|
|
187
|
+
|
|
188
|
+
Default: `dist`
|
|
189
|
+
|
|
190
|
+
Description: Define the output directory for the build
|
|
191
|
+
|
|
192
|
+
#### `distZip`
|
|
193
|
+
|
|
194
|
+
Type: Boolean | { outDir?: string, outFileName?: string }
|
|
195
|
+
|
|
196
|
+
Default: `true`
|
|
197
|
+
|
|
198
|
+
Description: Enables zipping the build output.
|
|
199
|
+
If you want to disable zipping the build output, you need to set this option to `false`.
|
|
200
|
+
If you want to customize zipping the build output,
|
|
201
|
+
you need to set this option to an object with properties `outDir` and `outFileName`.
|
|
202
|
+
|
|
203
|
+
- `outDir` defines the output directory for the zipped build.
|
|
204
|
+
- `outFileName` defines the output file name for the zipped build.
|
|
205
|
+
You can use placeholder `[templateName]` in the file name to replace it with the template name.
|
|
206
|
+
|
|
207
|
+
#### `syncBackupsDir`
|
|
208
|
+
|
|
209
|
+
Type: String
|
|
210
|
+
|
|
211
|
+
Default: `backups`
|
|
212
|
+
|
|
213
|
+
Description: Define the directory for the asset backups that are used for backup assets from the MI server
|
|
214
|
+
|
|
173
215
|
### CLI API description
|
|
174
216
|
|
|
175
217
|
- `pp-dev help` - show CLI's help
|