Vue plug-in development, how to package pictures?

vue plug-in development, img refers to the image input path in the static folder is
, and then I add the static folder to the files in package.json, and then package
but when installing this plug-in in another project, the picture shows no, how do I configure it?

Aug.30,2021

adding static to file will package static into the package, but the path may not work if it starts with / static. You can put the image under the relative path you introduced, so that the image will be packaged as a module and change the src to the relative path.


how did the brothers finally solve the problem

Menu