Hey, thanks for the review. Some of the points may be useful for a later stage of development of the extension. Regarding unsafe-eval, I had issues in installing the extension locally while using webpack --watch as an error was raised in the browser and the js file could not be used otherwise.
You are viewing a single comment's thread from:
you can remove unsafe-eval for production in that case.
I actually setup 2 manifest.json, 1 is for development and 1 is for production
process.env.NODE_ENV === 'production' ? [ { from: path.resolve('src/manifest.production.json'), to: `${path.resolve('dist')}/manifest.json`, }, ] : [ { from: path.resolve('src/manifest.development.json'), to: `${path.resolve('dist')}/manifest.json`, }, ];
I written a vue.js based cli generator plugin, which will generate both files shown in here https://github.com/superoo7/vue-cli-plugin-chrome-ext/blob/8902ef6645045ade463b40dea132f92ac5b63615/generator/generate/manifest.js