Comments (7)
You don't need this plugin with webpack v5, please look at output.clean: true
option
from clean-webpack-plugin.
@shanedg docs was updated https://webpack.js.org/guides/output-management/#cleaning-up-the-dist-folder
from clean-webpack-plugin.
Is there any known workaround for this? For now I am removing clean-webpack-plugin from shared webpack configs in create-single-spa, since it throws typescript errors with webpack 5.
from clean-webpack-plugin.
@johnagan I am trying to update this package to webpack v5. But would like some help. See my branch: master...strootje:update-webpack-v5
It seems that the .map
files aren't being removed. which makes me assume that they've been removed from the assets map. Got any clue's?
from clean-webpack-plugin.
@alexander-akait thanks for pointing this out! At the moment, Webpack 5 guides still recommend this plugin for cleaning the dist/ folder and a clean
option is missing under output configuration.
FYI there's a new, internal CleanPlugin
Here's the relevant bit in the Webpack 5 src: https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js#L181-L186
from clean-webpack-plugin.
FYI there's a new, internal CleanPlugin
That's great! I would be happy to deprecate this one since I don't have time to spend on it anymore.
from clean-webpack-plugin.
what progress about this issue
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
- 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.