wxt-dev / wxt

⚡ Next-gen Web Extension Framework
https://wxt.dev
MIT License
4.14k stars 168 forks source link

Configure browser binaries globally on windows #659

Open yacine-bens opened 4 months ago

yacine-bens commented 4 months ago

Describe the bug

The web-ext.config.ts in the project directory is working just fine. I'm trying to use it globally as mentioned in the docs by putting it in ~/web-ext.config.ts , but for windows I believe the path is C:\Users\<username>\. I tried changing the file name to .web-ext-config.js as in here but with not luck.

To Reproduce

  1. Start dev mode: npm run dev

Expected behavior

Launch browser binaries specified in C:\Users\<username>|web-ext.config.ts

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
    Memory: 9.46 GB / 15.86 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE     
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD        
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    wxt: ^0.18.2 => 0.18.2
aklinker1 commented 3 months ago

I looked into this, and I think this is a problem with c12. It's not discovering the config file in the home directory correctly.