How to change the path of introducing resources into the index page of a vue-cli packaged project?

for example, generally speaking, the packaged project structure is as follows:

index.html
static - js
         css
         fonts
         img

the resource introduced into index is also href= "static/xx/xx"
. Now the requirement is to package something like the following

.
index.html
lib - static - js
               css
               fonts
               img

and make the imported resources in index become href= "libra/static/xx/xx"
. What should I do?

Mar.17,2021

publicpath in webpack take a look at

Menu