SVG images are now optimized as part of the build

15 views
Skip to first unread message

Tim Van der Lippe

unread,
Jun 10, 2021, 11:39:11 AM6/10/21
to devtools-dev
Hey everyone,

With https://crrev.com/c/2939994 we are now dynamically optimizing our SVGs. This means that it is no longer required to manually preprocess SVGs with `npx svgo`.

Instead, you should now add the SVG file to `devtools_svg_files` in `devtools_image_files.gni` and place the SVG file in `front_end/Images/src/`. The image will then dynamically be optimized with `svgo` as part of the build step `front_end/Images:optimize_images`.

Let me know if you have any questions.

Cheers,
Tim
Reply all
Reply to author
Forward
0 new messages