vite-plugin-web-extension icon indicating copy to clipboard operation
vite-plugin-web-extension copied to clipboard

Manifest.json is not rewritten when updating the src/manifest.json or package.json

Open EdoanR opened this issue 6 months ago • 3 comments

Summary

When running npm run dev when chaning some info in the src/manifest.json or in the package.json (for example: name, version) the manifest.json in the dist folder does not update with the info I changed.

Reproduction

  1. run npm create vite-plugin-web-extension
  2. give a name for the project and choose any framework (I'm using vue-ts)
  3. go to the project folder and run npm run dev and wait for it to build.
  4. while the server still running, change the name in the package.json.
  5. manifest.json from dist folder still the same.

Environment

  System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 AMD Ryzen 5 5600G with Radeon Graphics
    Memory: 24.54 GB / 31.79 GB
  Binaries:
    Node: 18.16.0 - D:\Program Files\nodejs\node.EXE
    npm: 9.5.1 - D:\Program Files\nodejs\npm.CMD
    pnpm: 8.7.4 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (120.0.2210.61)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    vite: ^5.0.0 => 5.0.9
    vite-plugin-web-extension: ^4.0.0 => 4.0.1

EdoanR avatar Dec 15 '23 14:12 EdoanR

This is a known issue. I don't think there was a GitHub issue open for it though, so thanks for opening one.

I don't plan on implementing this feature for vite-plugin-web-extension. I'm close to releasing v1.0 of wxt, the successor to this project. Once WXT v1.0 is out, I'll announce that this repo is in maintenance mode. It kinda already is, but I'm holding off on officially announcing that until then.

aklinker1 avatar Dec 27 '23 19:12 aklinker1

Thanks for the response, wxt looks pretty good, I think I will start using it. But not sure if I should close this issue thought.

EdoanR avatar Dec 29 '23 12:12 EdoanR

Feel free to keep it open 👍

aklinker1 avatar Dec 29 '23 15:12 aklinker1