mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(generator): ensure manifest dir exists (#8474)
This commit is contained in:
parent
739261cdde
commit
dd7f767d13
@ -64,6 +64,7 @@ export default class Generator {
|
||||
if (this.manifest) {
|
||||
await this.nuxt.callHook('generate:manifest', this.manifest, this)
|
||||
const manifestPath = path.join(this.staticAssetsDir, 'manifest.js')
|
||||
await fsExtra.ensureDir(this.staticAssetsDir)
|
||||
await fsExtra.writeFile(manifestPath, `__NUXT_JSONP__("manifest.js", ${devalue(this.manifest)})`, 'utf-8')
|
||||
consola.success('Static manifest generated')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user