Commit b3c897db authored by 尚斌杰's avatar 尚斌杰

修改打包路径多个/的问题

parent c64f47cd
...@@ -219,7 +219,7 @@ async function build (args, api, options) { ...@@ -219,7 +219,7 @@ async function build (args, api, options) {
if(item.test.toString().indexOf('png|jp')>=0){ if(item.test.toString().indexOf('png|jp')>=0){
for (const itemChild of item.use) { for (const itemChild of item.use) {
if(itemChild.options){ if(itemChild.options){
itemChild.options.publicPath = curPublicPath?curPublicPath.indexOf(entry)<0?curPublicPath+'/'+entry:curPublicPath:'/'+entry itemChild.options.publicPath = curPublicPath?curPublicPath.indexOf(entry)<0?curPublicPath+entry:curPublicPath:'/'+entry
break break
} }
} }
......
{ {
"name": "vue-cli-plugin-ts-multi-pages", "name": "vue-cli-plugin-ts-multi-pages",
"version": "1.1.12", "version": "1.1.13",
"description": "vue-cli3多页开发插件TS版", "description": "vue-cli3多页开发插件TS版",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment