Closed Kocal closed 10 months ago
Hey :wave:
@t-miller faced an issue on https://github.com/Kocal/vue-web-extension/issues/658, with the usage of Function() and eval() in the dist code, complying with Mozilla' CSP when uploading the extension on their web store.
Function()
eval()
I fixed the same issue in a previous version of my preset (see https://github.com/Kocal/vue-web-extension/pull/398), and so I'm applying it here to impact more people.
I used .tap() to update DefinePlugin arguments, which is always configured by Vue-CLI.
.tap()
DefinePlugin
Here is the output of vue-cli-service inspect:
vue-cli-service inspect
Hey :wave:
@t-miller faced an issue on https://github.com/Kocal/vue-web-extension/issues/658, with the usage of
Function()
andeval()
in the dist code, complying with Mozilla' CSP when uploading the extension on their web store.I fixed the same issue in a previous version of my preset (see https://github.com/Kocal/vue-web-extension/pull/398), and so I'm applying it here to impact more people.
I used
.tap()
to updateDefinePlugin
arguments, which is always configured by Vue-CLI.Here is the output of
vue-cli-service inspect
: