Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.map files not cleaned up with webpack 5 #182

Open
daveisfera opened this issue Aug 13, 2020 · 3 comments
Open

.map files not cleaned up with webpack 5 #182

daveisfera opened this issue Aug 13, 2020 · 3 comments

Comments

@daveisfera
Copy link

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
@daveisfera daveisfera changed the title .map files not cleaned up with web pack 5 .map files not cleaned up with webpack 5 Aug 13, 2020
shanedg added a commit to shanedg/trshcmpctr that referenced this issue Nov 28, 2020
Adjust "splitChunks" config values. Upgrade html-webpack-plugin to v5
prerelease to silence deprecation warning. Upgrade terser-webpack-plugin
to v5. Remove clean-webpack-plugin because not ready for v5.
See johnagan/clean-webpack-plugin#182 and
johnagan/clean-webpack-plugin#188.
shanedg added a commit to shanedg/trshcmpctr that referenced this issue Nov 28, 2020
Adjust "splitChunks" config values. Upgrade html-webpack-plugin to v5
prerelease to silence deprecation warning. Upgrade terser-webpack-plugin
to v5. Remove clean-webpack-plugin because not ready for v5.
See johnagan/clean-webpack-plugin#182 and
johnagan/clean-webpack-plugin#188. Remove
progress-bar-webpack-plugin because of weird v5 double completion.
Remove chalk, only used by progress bar.
@Directory
Copy link

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

@vovkvlad
Copy link

vovkvlad commented Mar 23, 2021

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

@mjac
Copy link

mjac commented Mar 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants