Giter Site home page Giter Site logo

Comments (6)

johnagan avatar johnagan commented on August 18, 2024 1

See #29 - Sorry for the trouble @fritx

from clean-webpack-plugin.

eladnava avatar eladnava commented on August 18, 2024

According to #29 (comment), this bug has not been fixed unfortunately.

Please reopen this issue. 👍

from clean-webpack-plugin.

tylerhou avatar tylerhou commented on August 18, 2024

@eladnava This bug has been fixed in the latest version (which was a rollback of my original pull request), so it should remain closed.

from clean-webpack-plugin.

eladnava avatar eladnava commented on August 18, 2024

@tylerhou I'm still experiencing a full directory deletion instead of just the files inside with the latest version, using this code:

plugins: [
        new CleanWebpackPlugin(['build'])
]

from clean-webpack-plugin.

scott-thrillist avatar scott-thrillist commented on August 18, 2024

Same issue as @eladnava

from clean-webpack-plugin.

tylerhou avatar tylerhou commented on August 18, 2024

So this issue specifically is about deletion on watch. That is, if you were running webpack --watch, you would have seen the directories be deleted every single time you changed your code and webpack recompiled. That was an undocumented change (my apologies) and has been fixed with the rollback.

On the other hand, full directory deletion is intentional. If you want to delete files inside the directory, you'll have to specify them individually. For most users the difference between deletion of a directory and deletion of all the files inside a directory but not the directory itself is negligible, since usually webpack would immediately recreate it on compile.

from clean-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.