From fb331da27019cf4f00afc40189835095c3461958 Mon Sep 17 00:00:00 2001 From: Brian Lambert Date: Mon, 9 Dec 2024 18:21:06 -0500 Subject: [PATCH] Adding new 'big-gulp' script to package.json that creates an unmangled build in just a few minutes (#5670) --- build/gulpfile.compile.js | 4 +++- package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build/gulpfile.compile.js b/build/gulpfile.compile.js index c6d7bbded93..02474be8b82 100644 --- a/build/gulpfile.compile.js +++ b/build/gulpfile.compile.js @@ -32,7 +32,9 @@ function makeCompileBuildTask(disableMangle) { } // Full compile, including nls and inline sources in sourcemaps, mangling, minification, for build -const compileBuildTask = task.define('compile-build', makeCompileBuildTask(false)); +// --- Start Positron --- +const compileBuildTask = task.define('compile-build', makeCompileBuildTask(process.env.DISABLE_MANGLE === 'true')); +// --- End Positron --- gulp.task(compileBuildTask); exports.compileBuildTask = compileBuildTask; diff --git a/package.json b/package.json index 8ce0522e5a3..77906a741c8 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "kill-watch-build-toolsd": "deemon --kill yarn watch-build-tools", "precommit": "node build/hygiene.js", "gulp": "node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js", + "big-gulp": "DISABLE_MANGLE=true node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js", "electron": "node build/lib/electron", "7z": "7z", "update-grammars": "node build/npm/update-all-grammars.mjs",