mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(builder): empty dir before generate
This commit is contained in:
parent
0b18f77746
commit
8a1cb84518
@ -76,7 +76,7 @@ function watch (builder: Builder) {
|
||||
export async function generate (builder: Builder) {
|
||||
const { nuxt } = builder
|
||||
|
||||
await fsExtra.mkdirp(nuxt.options.buildDir)
|
||||
await fsExtra.emptyDir(nuxt.options.buildDir)
|
||||
builder.app = await createApp(builder)
|
||||
|
||||
const templatesDir = join(builder.nuxt.options.appDir, '_templates')
|
||||
|
Loading…
Reference in New Issue
Block a user