cli icon indicating copy to clipboard operation
cli copied to clipboard

Possibility to disable the output dir deletion

Open schirrel opened this issue 11 months ago • 0 comments

Describe the feature

Hi guys, i have a SSG Nuxt project inside a PHP legacy project, and we are slowly migrating to Nuxt, to achieve that we have our output folder as the PHP, so the pages build get in the PHP level and we do not need to work around the routing, replaciong files and stuff.

But the nuxi generate uses the build command which calls clearBuildDir function which remove the whole outpur/dist, there is a way to overwrite the prepare behavior? There is away to bypass that?

Maybe adding a new config property to add more items to the exclude array? Or maybe a way to override the recursive and force options?

Thanks

I am willing to help implement this feature

schirrel avatar Jan 24 '25 17:01 schirrel