Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix: remove duplicate static path definition
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 12, 2020
1 parent 7fd70d9 commit 48b9afb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ const compositionApiModule: Module<any> = function () {
})

this.nuxt.hook('generate:done', async (generator: any) => {
const srcDir = join(this.options.buildDir || '', 'static-json')
const { distPath } = generator
readdirSync(srcDir).forEach(file =>
copyFileSync(join(srcDir, file), join(distPath, file))
readdirSync(staticPath).forEach(file =>
copyFileSync(join(staticPath, file), join(distPath, file))
)
})

Expand Down

1 comment on commit 48b9afb

@vercel
Copy link

@vercel vercel bot commented on 48b9afb Jun 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.