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

Commit

Permalink
fix: create static-json folder before dev/build
Browse files Browse the repository at this point in the history
closes #337
  • Loading branch information
danielroe committed Feb 10, 2021
1 parent 8b4dff5 commit 27e2ffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const compositionApiModule: Module<any> = function compositionApiModule() {

const staticPath = join(this.options.buildDir || '', 'static-json')

this.nuxt.hook('builder:prepared', () => {
mkdirpSync(staticPath)
})

this.nuxt.hook('generate:route', () => {
mkdirpSync(staticPath)
})
Expand Down

1 comment on commit 27e2ffa

@vercel
Copy link

@vercel vercel bot commented on 27e2ffa Feb 10, 2021

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.