mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(nuxt): only delete assets when building (#7486)
This commit is contained in:
parent
addcb5cd47
commit
40d090745b
@ -92,7 +92,7 @@ async function initNuxt (nuxt: Nuxt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: [Experimental] Avoid emitting assets when flag is enabled
|
// TODO: [Experimental] Avoid emitting assets when flag is enabled
|
||||||
if (nuxt.options.experimental.noScripts) {
|
if (nuxt.options.experimental.noScripts && !nuxt.options.dev) {
|
||||||
nuxt.hook('build:manifest', async (manifest) => {
|
nuxt.hook('build:manifest', async (manifest) => {
|
||||||
for (const file in manifest) {
|
for (const file in manifest) {
|
||||||
if (manifest[file].resourceType === 'script') {
|
if (manifest[file].resourceType === 'script') {
|
||||||
|
Loading…
Reference in New Issue
Block a user