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

Can't remove source maps after build #178

Open
zephy20 opened this issue May 1, 2020 · 1 comment
Open

Can't remove source maps after build #178

zephy20 opened this issue May 1, 2020 · 1 comment

Comments

@zephy20
Copy link

zephy20 commented May 1, 2020

My build folder looks something like this:

Screenshot 2020-05-01 at 8 15 00 PM

and my webpack config looks something like this:

  if (!isDev) {
            const SentryWebpackPlugin = require("@sentry/webpack-plugin");
            config.plugins.push(
              new SentryWebpackPlugin({
                release: buildId,
                include: ".next",
                configFile: ".sentryclirc"
              })
            );
          }

          config.plugins.push(
            new CleanWebpackPlugin({
              cleanAfterEveryBuildPatterns: ["**/*.map"],
              protectWebpackAssets: false
            })
          );

I want to delete the source maps after sentry uploads them. But this doesn't happen. I can still see the source maps and sentry doesn't show me the source map referenced error.

I am using Nextjs with next-source-maps for creating source maps.

Been stuck on this for hours. Any help?

@scplay
Copy link

scplay commented Jan 1, 2021

I comfront the same issue, but when I set protectWebpackAssets false it works, Have you resolve that problem?

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

2 participants