vue-cli-plugin-browser-extension icon indicating copy to clipboard operation
vue-cli-plugin-browser-extension copied to clipboard

manifest.json not copying correctly

Open SirDannyMunn opened this issue 3 years ago • 2 comments

Describe the bug When I build in dev mode using npm run serve, the manifest copies across, but not all of the attributes from the original in src/manifest.json are present. Some of which are required by chrome to import the extension.

To Reproduce npm run serve

Expected behavior I expect the manifest.json which is copied to have the attributes which are defined in the original

Screenshots

Original manifest: image

Build manifest: image

Name Version
vue-cli-plugin-browser-extension 0.1.0
Operating System Windows 10
Node 16.0.0
NPM/Yarn 7.10.0
vue-cli 5.0.8
vue-cli-service 5.0.0
browser chrome

Additional Context

Also when I try adding attributes using the manifestTransformer in vue.config.js it doesn't make any different

SirDannyMunn avatar Jul 13 '22 18:07 SirDannyMunn

same me ...

farzadtara avatar Nov 16 '22 11:11 farzadtara

just kind of glancing at this, I think you may have a conflict with the PWA add on and this one. Both will export a manifest.json file. The current recommendation is to use a monorepo structure to share your code across build targets, but allow for keeping different builds/entrypoints in place for your extension code and your web app code

adambullmer avatar Nov 26 '23 16:11 adambullmer