Skip to content

Possibility to disable the output dir deletion #699

Open
@schirrel

Description

@schirrel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions