Git Product home page Git Product logo

Comments (5)

hustcer avatar hustcer commented on May 20, 2024

I have the same issue here at v0.1.12, it just don't clean as before: I want it to clean the directory when I first run the task like npm run dev, then after any later file changes, the directory need not be cleaned, It's just an incremental build, not a full build. At least it should be configurable.
So I have to revert to v0.1.11. Or do I use it in the wrong way?

from clean-webpack-plugin.

johnagan avatar johnagan commented on May 20, 2024

@tylerhou this seems to be a result of your PR #26. Should I roll this back?

from clean-webpack-plugin.

johnagan avatar johnagan commented on May 20, 2024

I rolled back #30 until it's resolved. v0.1.13 includes the rollback

from clean-webpack-plugin.

tylerhou avatar tylerhou commented on May 20, 2024

Sorry about that. I didn't realize that it would run there too. Perhaps the best solution is to have an option watch (default: false) which would attach the event listener if true.

from clean-webpack-plugin.

tylerhou avatar tylerhou commented on May 20, 2024

On closer inspection, this isn't a problem with the pull request I made. Here's a repo of the bug at v0.1.13:

// index.js
var CleanWebpackPlugin = require('clean-webpack-plugin');
var webpack = require("webpack");

var compiler = webpack({
  plugins: [
    new CleanWebpackPlugin(['dist'])
  ]
});

$ node index.js
dist gets deleted.

@hustcer your bug isn't the same; it's a duplicate of #31. #31 is also incorrect in referencing this bug as the two are not linked.

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.