johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.map files not cleaned up with webpack 5

daveisfera opened this issue · comments

Issue description or question

We switched to web pack 5 and are using [name].[contenthash].js for the the output filename and the bundles are being cleaned up, but the .map files are not

Webpack Config

cache: {
    type: 'filesystem', 
},  
resolve: {
    extensions: ['.js', '.jsx', '.json'],
},
mode: 'development',
node: {
    global: true,
},
optimization: {
    minimize: false,
    runtimeChunk: 'single',
    splitChunks: {
        chunks: 'all',
        maxInitialRequests: 30,
        maxAsyncRequests: 30,
    },  
},  
parallelism: 4,
devtool: 'source-map',
target: 'web',
watch: true,

Environment

Run: npx envinfo --system --binaries --npmPackages clean-webpack-plugin,webpack

  System:
    OS: macOS 10.15.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
    Memory: 213.96 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.18.2 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.5 - /usr/local/bin/npm

having the same problem. only thing i can think of is using inline maps but i dont want to do that

experiencing the same issue on v3.0.0 of the plugin and webpack v5.21.2

Did anyone find a resolution to this issue or workaround? I'm having the same issue. on Webpack 5.70.0