Skip to content

icon: support svg, webp and optimization #398

@atinux

Description

@atinux

It would be nice to also support static/icon.svg is available, I think we could use sharp for transformation.

const sharp = require("sharp")

sharp('static/icon.svg')
  .png()
  .toFile("{buildDir}/icon.png")
  .then(function(info) {
    console.log(info)
  })
  .catch(function(err) {
    console.log(err)
  })

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions