mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix: use default import of devalue
This commit is contained in:
parent
6850af11c5
commit
4ecdc7275f
@ -1,7 +1,7 @@
|
||||
import path from 'path'
|
||||
import chalk from 'chalk'
|
||||
import consola from 'consola'
|
||||
import { uneval } from 'devalue'
|
||||
import devalue from 'devalue'
|
||||
import fsExtra from 'fs-extra'
|
||||
import { defu } from 'defu'
|
||||
import htmlMinifier from 'html-minifier'
|
||||
@ -64,7 +64,7 @@ export default class Generator {
|
||||
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", ${uneval(this.manifest)})`, 'utf-8')
|
||||
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