From 6d2c2538b2606c6d04ccade8ee625c4a1127c002 Mon Sep 17 00:00:00 2001 From: Pierdomenico Reitano Date: Mon, 27 Jun 2022 23:44:04 +0200 Subject: [PATCH] fixed issue #89 error for resolveAlias --- src/module.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index d142dff..fb12f72 100644 --- a/src/module.ts +++ b/src/module.ts @@ -85,8 +85,7 @@ const nuxtModule: Module = function (moduleOptions) { // download if (options.download) { - const outputDir = this.nuxt.resolver.resolveAlias(options.outputDir) - + const outputDir = this.nuxt.resolver ? this.nuxt.resolver.resolveAlias(options.outputDir) : `${this.nuxt.options.srcDir}/${options.outputDir}` try { await GoogleFontsHelper.download(url, { base64: options.base64,