Giter Site home page Giter Site logo

Comments (8)

vineetkumar19871503 avatar vineetkumar19871503 commented on July 18, 2024 3

It is happening with me as well. First of all it removes the build directory then webpack makes a build and then immediately it is removed again.

from clean-webpack-plugin.

fqf avatar fqf commented on July 18, 2024 1

There was a script in my package.json:
"start": "webpack --config ./configs/dev.webpack.config.js && webpack-dev-server --config ./configs/dev.webpack.config.js"
Two commands (separated "&&") invoked cleaning two times. In my case the problem was there.

from clean-webpack-plugin.

johnagan avatar johnagan commented on July 18, 2024

Is this still happening?

from clean-webpack-plugin.

jpgringo avatar jpgringo commented on July 18, 2024

@johnagan this is happening to me, also. Was there ever any resolution to this issue?

from clean-webpack-plugin.

ChrisRAoW avatar ChrisRAoW commented on July 18, 2024

Have you enabled the "watch" option?

I Just submitted a pull request which only performs the clean after succesfull compiliation and just before the new files are emitted to the output dir:
#72

from clean-webpack-plugin.

eballeste avatar eballeste commented on July 18, 2024

this is happening to me, I think it has something to do with using webpack-dev-server along with this plugin

from clean-webpack-plugin.

gmartowski avatar gmartowski commented on July 18, 2024

There was a script in my package.json:
"start": "webpack --config ./configs/dev.webpack.config.js && webpack-dev-server --config ./configs/dev.webpack.config.js"
Two commands (separated "&&") invoked cleaning two times. In my case the problem was there.

I've got exactly the same problem; leaving one ampersand instead of two, fixed problem, @fqf Many thanks !

from clean-webpack-plugin.

chrisblossom avatar chrisblossom commented on July 18, 2024

Closed in v2.0.0 via #99. See johnagan/clean-webpack-plugin#usage. Please open a new issue if you continue to have problems.

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.