From 3f13da0ad9902bd4ffb1643defae90aafb9ff16a Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Tue, 20 Feb 2024 17:00:27 +0200 Subject: [PATCH] fix(nuxt): turn on autoimport --- .../application/__snapshots__/application.spec.ts.snap | 10 +++++----- .../application/files/nuxt.config.ts__tmpl__ | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap b/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap index 6dbf02ba149d5..efc4266fab012 100644 --- a/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap +++ b/packages/nuxt/src/generators/application/__snapshots__/application.spec.ts.snap @@ -47,7 +47,7 @@ export default defineNuxtConfig({ }, }, imports: { - autoImport: false, + autoImport: true, }, vite: { @@ -234,7 +234,7 @@ export default defineNuxtConfig({ }, }, imports: { - autoImport: false, + autoImport: true, }, css: ['~/assets/css/styles.css'], @@ -272,7 +272,7 @@ export default defineNuxtConfig({ }, }, imports: { - autoImport: false, + autoImport: true, }, css: ['~/assets/css/styles.less'], @@ -310,7 +310,7 @@ export default defineNuxtConfig({ }, }, imports: { - autoImport: false, + autoImport: true, }, css: ['~/assets/css/styles.scss'], @@ -348,7 +348,7 @@ export default defineNuxtConfig({ }, }, imports: { - autoImport: false, + autoImport: true, }, vite: { diff --git a/packages/nuxt/src/generators/application/files/nuxt.config.ts__tmpl__ b/packages/nuxt/src/generators/application/files/nuxt.config.ts__tmpl__ index 9f6ee7da37c62..770634a8f36d9 100644 --- a/packages/nuxt/src/generators/application/files/nuxt.config.ts__tmpl__ +++ b/packages/nuxt/src/generators/application/files/nuxt.config.ts__tmpl__ @@ -18,7 +18,7 @@ export default defineNuxtConfig({ }, }, imports: { - autoImport: false, + autoImport: true, }, <% if (style !== 'none') { %> css: ['~/assets/css/styles.<%= style %>'],