Commit 7150232b authored by 尚斌杰's avatar 尚斌杰

修复打包bug

parent 224d5a27
...@@ -218,7 +218,8 @@ async function build (args, api, options) { ...@@ -218,7 +218,8 @@ 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 = (itemChild.options.publicPath||'/').indexOf(entry)<0?itemChild.options.publicPath+'/'+entry:itemChild.options.publicPath const curPublicPath = itemChild.options.publicPath
itemChild.options.publicPath = curPublicPath?curPublicPath.indexOf(entry)<0?publicPath+'/'+entry:publicPath:'/'+entry
break break
} }
} }
......
{ {
"name": "vue-cli-plugin-ts-multi-pages", "name": "vue-cli-plugin-ts-multi-pages",
"version": "1.1.10", "version": "1.1.11",
"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