diff --git a/packages/vue/src/generators/application/application.ts b/packages/vue/src/generators/application/application.ts index f6efb1b7f944ee..9087a6a4e143a3 100644 --- a/packages/vue/src/generators/application/application.ts +++ b/packages/vue/src/generators/application/application.ts @@ -2,6 +2,7 @@ import { addProjectConfiguration, formatFiles, GeneratorCallback, + readNxJson, runTasksInSerial, toJS, Tree, @@ -28,7 +29,11 @@ export async function applicationGeneratorInternal( _options: Schema ): Promise<GeneratorCallback> { const options = await normalizeOptions(tree, _options); - options.addPlugin ??= process.env.NX_ADD_PLUGINS !== 'false'; + const nxJson = readNxJson(tree); + + options.addPlugin ??= + process.env.NX_ADD_PLUGINS !== 'false' && + nxJson.useInferencePlugins !== false; const tasks: GeneratorCallback[] = [];