Skip to content

Webpack caching with sentry release #278

Description

@alex-kharchenko-moc

Hello, I'm trying setup webpack cache in my project, and when I was added this configs

cache: {
        type: 'filesystem',
        cacheDirectory: process.env.CACHE_DIRECTORY
}

webpack caching works fine (first build => 146s / second build => 60s).

But when I am changing sentry release number and start build she is always takes 146s or more.

Please help me understand what I am doing wrong...

P.S. This is my SentryWebpackPlugin configs

sentry: {
        url: SENTRY_SERVICE_URL,
        urlPrefix: `~/${SOURCE_DIRECTORY}`,
        authToken: SENTRY_AUTH_TOKEN,
        org: 'sentry',
        project: SENTRY_FRONTEND_PROJECT,
        release: [SENTRY_FRONTEND_PROJECT, SENTRY_RELEASE].join('-'),
        include: output,
        silent: true,

        // Do not block deploy when sentry is not available
        errorHandler: (err, invokeErr, compilation) => {
            compilation.warnings.push(`Sentry CLI Plugin: ${err.message}`);
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions