diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/Gruntfile.js b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/Gruntfile.js
index fcdb7fdc53..2213360422 100644
--- a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/Gruntfile.js
+++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/Gruntfile.js
@@ -19,8 +19,8 @@ module.exports = function ( grunt ) {
sass: {
options: {
implementation: require( 'sass' ),
- sourceMap: true,
- // Don't add source map URL in built version.
+ // Don't add source map & source map URL in built version.
+ sourceMap: 'build' !== process.argv[ 2 ],
omitSourceMapUrl: 'build' === process.argv[ 2 ],
outputStyle: 'expanded',
includePaths: [ './node_modules' ],