Jervis2049 / vite-plugin-crx-mv3

Build a Chrome Extension with Vite⚡
201 stars 30 forks source link

Sourcemap is likely to be incorrect: a plugin (vite-plugin-crx-mv3) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help #35

Closed JinLongy closed 7 months ago

JinLongy commented 8 months ago

大佬 我这build的时候 Sourcemap is likely to be incorrect: a plugin (vite-plugin-crx-mv3) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help 出这个提示 然后打包后的content.js还是原先的代码 然后content里面的vue文件中的css 并没有打包到最后的文件中 打包后的manifest文件也没有注入css

Jervis2049 commented 8 months ago

你好。可以提供一个复现的demo吗

Jervis2049 commented 7 months ago

v0.1.7修复了 麻烦试下

JinLongy commented 7 months ago

大佬 我试了 打包可以了 但是 我在content中写的样式没有在打包后的文件生效 我看已经打出来对应的css文件 image

Jervis2049 commented 7 months ago

大佬 我试了 打包可以了 但是 我在content中写的样式没有在打包后的文件生效 我看已经打出来对应的css文件 image

我在examples目录下都例子应该是可以的。我还是没法根据你提供的信息定位到问题,如果方便最好可以提供一个可复现的demo,你可以剔除其它业务代码。

JinLongy commented 7 months ago

打包前 manifest.json manifest.json src\injection\App.vue App.txt src\injection\content.ts content.txt

JinLongy commented 7 months ago

打包后 image manifest.json manifest.json image 但是在页面调试并不能看到样式 image