Skip to content

Commit

Permalink
fixed issue nuxt-modules#89 error for resolveAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierdomenico Reitano committed Jun 27, 2022
1 parent 542260d commit 6d2c253
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ const nuxtModule: Module<ModuleOptions> = 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,
Expand Down

0 comments on commit 6d2c253

Please sign in to comment.