This task will convert static images saved in the frontend/public/images/source
folder.
Nesting images inside folders is also supported here.
This task can be executed by running the following command in your project:
node server.js imageOptimize
Below is an example file/folder structure:
frontend/public/images/source
frontend/public/images/source/folder1
frontend/public/images/source/folder1/test.jpg
frontend/public/images/source/image1.jpg
The structure will look like this after conversion:
frontend/public/images/dist
frontend/public/images/dist/folder1
frontend/public/images/dist/folder1/test.jpg
frontend/public/images/dist/folder1/test.webp
frontend/public/images/dist/image1.jpg
frontend/public/images/dist/image1.webp
Note: You can only convert images when running in development mode
Last modified | Wednesday, July 28, 2021, 7:09:29 AM UTC |
Last author | Glenn de Haan |
Commit ID | e89c1df |