mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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
|
||||
if (nuxt.options.experimental.noScripts) {
|
||||
if (nuxt.options.experimental.noScripts && !nuxt.options.dev) {
|
||||
nuxt.hook('build:manifest', async (manifest) => {
|
||||
for (const file in manifest) {
|
||||
if (manifest[file].resourceType === 'script') {
|
||||
|
Loading…
Reference in New Issue
Block a user