mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-16 12:25:15 -06:00
fix: inspect --plugins should log plugin names from webpack-merge (#2201)
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = (api, options) => {
|
||||
} else if (args.rules) {
|
||||
res = config.module.rules.map(r => r.__ruleNames[0])
|
||||
} else if (args.plugins) {
|
||||
res = config.plugins.map(p => p.__pluginName)
|
||||
res = config.plugins.map(p => p.__pluginName || p.constructor.name)
|
||||
} else if (paths.length > 1) {
|
||||
res = {}
|
||||
paths.forEach(path => {
|
||||
|
||||
Reference in New Issue
Block a user