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({