mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +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 path from 'path'
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
import consola from 'consola'
|
import consola from 'consola'
|
||||||
import { uneval } from 'devalue'
|
import devalue from 'devalue'
|
||||||
import fsExtra from 'fs-extra'
|
import fsExtra from 'fs-extra'
|
||||||
import { defu } from 'defu'
|
import { defu } from 'defu'
|
||||||
import htmlMinifier from 'html-minifier'
|
import htmlMinifier from 'html-minifier'
|
||||||
@ -64,7 +64,7 @@ export default class Generator {
|
|||||||
await this.nuxt.callHook('generate:manifest', this.manifest, this)
|
await this.nuxt.callHook('generate:manifest', this.manifest, this)
|
||||||
const manifestPath = path.join(this.staticAssetsDir, 'manifest.js')
|
const manifestPath = path.join(this.staticAssetsDir, 'manifest.js')
|
||||||
await fsExtra.ensureDir(this.staticAssetsDir)
|
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')
|
consola.success('Static manifest generated')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user