adambullmer / vue-cli-plugin-browser-extension

Browser extension development plugin for vue-cli 3.0
GNU Lesser General Public License v3.0
425 stars 76 forks source link

Add support for manifest-v3 Content Security Policy #131

Closed buck-ross closed 1 year ago

buck-ross commented 2 years ago

See #130 for discussion of the underlying issue. Given that this PR implements new functionality necessary for supporting manifest-v3 without detracting from any existing functionality, I feel it makes sense to include this in version 0.26.

Description

The new function to compute defaults for the manifest file should be able to maintain the old defaults for manifest-v2 exactly as they were, while also allowing manifest-v3 compatible CSP objects.

The function will also emit a warning when an unsupported manifest version is encountered, but for the sake of future-proofing, no errors are emitted, and the compiler process is not halted.

Checks