Comments (16)
0.1.16
pushed to npm
from clean-webpack-plugin.
@tylerhou said:
This issue can't be fixed given the current architecture of the plugin.
Based on that, looks like it would be close to a full re-write?
from clean-webpack-plugin.
Ignore that. I may have been talking out of my ass.
from clean-webpack-plugin.
Also, @johnagan, there have been two pull requests which fix this issue: #32 and #35, which have been open for 5 months and 4 months respectively. The first one I wrote; it plays well with the current tests but I didn't add tests for the --watch
option; the second one is fully tested but (according to the author) has bugs.
If tests are really really necessary for you, then please tell me and I'll take another look at the code. If you want to do any code review, I'm happy to work with you. All pull requests might be welcome, but it doesn't seem like you're a fan of giving feedback or of pulling them.
from clean-webpack-plugin.
This issue can't be fixed given the current architecture of the plugin. I wrapped the former .apply() function inside an event listener in my pull request which fixes this issue, but it has the added side effect of failing every test because of the changed architecture. We'd have to also restructure how tests are done too.
from clean-webpack-plugin.
just noticed the plugin doesn't work with watch and files start to pile up. this would be a nice addition!
from clean-webpack-plugin.
this is very important feature.
from clean-webpack-plugin.
This is really a deal breaker for me. For anybody else who finds this issue, clear old files on watch is supported in this plugin: https://github.com/gpbl/webpack-cleanup-plugin
from clean-webpack-plugin.
@kingjerod all PRs are welcome
from clean-webpack-plugin.
@tylerhou I think it was your recommendation to wait for the other with tests
#32 (comment)
That PR isn't mergable though
from clean-webpack-plugin.
from clean-webpack-plugin.
I was just letting you know that the other PR had tests, and you might want to pull that one instead. But if it's inherently buggy, as the author claims, that's an entirely different issue altogether.
My PR also was definitely mergeable when I submitted it five months ago, and it's not too difficult to resolve the merge conflicts. I just did.
from clean-webpack-plugin.
I'm happy to pull in a PR right now. If you think #32 is GTG as is, I'm 👍
from clean-webpack-plugin.
It's GTG if you're willing to accept that it has no tests for the watch function. I'm not sure how to write them.
from clean-webpack-plugin.
me either. I'll pull it in. worse case we just revert it... again 😏
from clean-webpack-plugin.
Yeah, my bad on that first time. My first legit pull request.
from clean-webpack-plugin.
Related Issues (20)
- Removes whole project when outputpath is root HOT 6
- Bug report or enhancement request:reassign "this.outputPath" in "handleInitial" HOT 1
- Console warn on new line
- The typings issue while upgrade to [email protected] HOT 7
- webpack 5 output path error HOT 2
- Type 'CleanWebpackPlugin' is not assignable to type '((this: Compiler, compiler: Compiler) => void) HOT 1
- upgrading from 0.1.19 to 3.0.0 doubt
- Bad type declaration in "clean-webpack-plugin.d.ts" HOT 1
- clean-webpack-plugin: options.output.path not defined. Plugin disabled... HOT 15
- Expose glob options to distinguish files and directories
- Deprecate plugin in favor `output.clean` HOT 8
- dry: true result different from real run
- v4.0.0-alpha.0 is released as `latest` HOT 5
- Does the order of clean-webpack-plugin matter? HOT 2
- Old dependency on del causes errors on Windows
- cleanAfterEveryBuildPatterns: ['*.LICENSE.txt'] doesn't seem to work HOT 2
- Excluding files & folders not working HOT 1
- Cannot read properties of undefined (reading 'emit')
- Maintenance HOT 1
- Outdated version of package "del" causes TypeScript project compile failures HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clean-webpack-plugin.