Search code examples
javascriptvue.jsgoogle-chrome-extension

how to use vue to develop chrome extension based on mainfest v3


I used vue to develop chrome extension based on mainfest v2, now I want to upgrade mainfest v2 to v3. But, popup html is empty. vue is not work. how to solve this problem?

html code:

<div id="app">
</div>

<script src="vue.js">

html render:

<!---->

Solution

  • I get it. Mainfest v3 blocks to use unsafe-inline and unsafe-eval. so vue cdn is not work. change to vue-cli way and use this cmd to build:

    npm run build --no-unsafe-inline