mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
[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
This commit is contained in:
parent
ac718dd7c4
commit
ab6bab9f8d
45 changed files with 3519 additions and 680 deletions
|
@ -53,11 +53,11 @@ Docusaurus provides some default mappings to allow you to run commands following
|
|||
|
||||
## Reference
|
||||
|
||||
### `docusaurus-build`
|
||||
### `docusaurus-build [--skip-image-compression]`
|
||||
|
||||
Alias: `build`.
|
||||
|
||||
Generates the static website, applying translations if necessary. Useful for building the website prior to deployment.
|
||||
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.
|
||||
|
||||
See also [`docusaurus-start`](api-commands.md#docusaurus-start-port-number).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue