diff --git a/packages/@vue/cli/lib/Generator.js b/packages/@vue/cli/lib/Generator.js index b74e0aa352..a1f80ea97c 100644 --- a/packages/@vue/cli/lib/Generator.js +++ b/packages/@vue/cli/lib/Generator.js @@ -54,7 +54,7 @@ module.exports = class Generator { for (const key in this.pkg) { extract(key) } - } else { + } else if (!process.env.VUE_CLI_TEST) { // by default, extract vue.config.js extract('vue') }