mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-13 12:40:18 -05:00
handle copy plugin for global build
This commit is contained in:
@@ -100,6 +100,12 @@ module.exports = function createConfigPlugin (context, entry) {
|
||||
config
|
||||
.plugin('html')
|
||||
.tap(() => [{ template: indexFile }])
|
||||
|
||||
// disable copy plugin if no public dir
|
||||
if (!findExisting(context, ['public'])) {
|
||||
console.log('deleting')
|
||||
config.plugins.delete('copy')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user