Skip to content

No cleaning of dist folder before build #182

@Domae84

Description

@Domae84

Expected Behavior

The dist folder should be cleaned before a build

Current Behavior

When you build your app when a dist folder allready exists, all old files which may not be part of the application anymore, still remains in the dist folder and will be part of the new build.

Steps to reproduce the issue

  1. Build an app with ui5 build
  2. Delete a file from you app (e.g. a controller/view)
  3. Build the app again
  4. Deleted file still part of dist folder

Context

  • UI5 Module Version (output of ui5 --version when using the CLI): 1.5.4
  • Node.js Version: v10.16.0
  • npm Version: 6.9.0
  • OS/Platform: Windows 10
  • Browser (if relevant): Chrome

Affected components (if known)

If this behaviour is supposed to be like this, is there a way to clean the dist folder before the execution of the actual build, without using Grunt or something else?

Best Regards
Domae

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