Skip to content

Auto icons doesnt override default icons #1592

@marcellino-ornelas

Description

@marcellino-ornelas

Describe the bug

Thank you for this library 🙌🏽 I love it already.

I ran into a issue today using the auto icons library. I noticed in the output that it said the default icons would be overrided but it instead looks like it made a separate directory and didn't override them

Image

It also chose to use the default icon in the extension instead of using the new icon I added 😃

Reproduction

Our repo is private so I cant share but added steps I did to the next section

Steps to reproduce

  • have default icons in the public folder public/icon/*
  • install auto icons
  • add the @wxt-dev/auto-icons to modules
  • add a icon to <src>/assets/icon.png
  • run npm run dev

When the browser spins up, you will still see the old wxt icon and not the new icon you added

System Info

System:
    OS: macOS 15.3.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 11.84 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v18.19.0/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
  Browsers:
    Chrome: 135.0.7049.96
    Safari: 18.3.1

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions