You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Feature] Introducing image compression using imagemin (#654)
* Introduce imagemin for compressing images
* Replace original images with the optimized ones
* Add imagemin-svgo to dependencies
* Remove console statement, replace let with const
* Replace let with const
* Add --skip-image-compression
* Run Prettier
Copy file name to clipboardexpand all lines: docs/api-commands.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -53,11 +53,11 @@ Docusaurus provides some default mappings to allow you to run commands following
53
53
54
54
## Reference
55
55
56
-
### `docusaurus-build`
56
+
### `docusaurus-build [--skip-image-compression]`
57
57
58
58
Alias: `build`.
59
59
60
-
Generates the static website, applying translations if necessary. Useful for building the website prior to deployment.
60
+
Generates the static website, applying translations if necessary. Useful for building the website prior to deployment. By default Docusaurus will attempt to compress your images unless you provided the `--skip-image-compression` flag.
61
61
62
62
See also [`docusaurus-start`](api-commands.md#docusaurus-start-port-number).
0 commit comments