From 6cdb7114a9f81384cd8419ef1ac095ca73a09fa0 Mon Sep 17 00:00:00 2001 From: Leon Sorokin Date: Fri, 10 Oct 2025 10:01:36 -0500 Subject: [PATCH] Chore: Disable webpack cache for noMinify builds (#112241) --- scripts/webpack/webpack.prod.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/webpack/webpack.prod.js b/scripts/webpack/webpack.prod.js index cc7882dbe05..4a23f28b60d 100644 --- a/scripts/webpack/webpack.prod.js +++ b/scripts/webpack/webpack.prod.js @@ -63,13 +63,16 @@ module.exports = (env = {}) => }, // enable persistent cache for faster builds - cache: { - type: 'filesystem', - name: 'grafana-default-production', - buildDependencies: { - config: [__filename], - }, - }, + cache: + parseInt(env.noMinify, 10) === 1 + ? false + : { + type: 'filesystem', + name: 'grafana-default-production', + buildDependencies: { + config: [__filename], + }, + }, plugins: [ new MiniCssExtractPlugin({