[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:
Ahmad Alfy 2018-05-10 02:59:36 +03:00 committed by Yangshun Tay
parent ac718dd7c4
commit ab6bab9f8d
45 changed files with 3519 additions and 680 deletions

View file

@ -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).