Anyone Know how to include uglifyjs in netlify build action?

Here is my current netlify.toml for the abridge theme:

[build]
publish = "public"
command = "zola build"

[build.environment]
ZOLA_VERSION = "0.16.0"

[context.deploy-preview]
command = "zola build --base-url $DEPLOY_PRIME_URL"

[[headers]]
  for = "/*"
  [headers.values]
    X-Frame-Options = "DENY"
    X-Content-Type-Options = "nosniff"
    X-XSS-Protection = "1; mode=block"
    Referrer-Policy = "strict-origin-when-cross-origin"
    Strict-Transport-Security = "max-age=63072000; includeSubdomains"
    Content-Security-Policy = "default-src 'none'; frame-ancestors 'none'; object-src 'none'; base-uri 'self'; manifest-src 'self'; connect-src 'self'; form-action 'self'; script-src 'self'; img-src 'self' data: cdn.cloudflare.com; frame-src 'self' www.youtube-nocookie.com player.vimeo.com; media-src 'self' data: cdn.cloudflare.com www.youtube-nocookie.com player.vimeo.com; font-src 'self' cdn.cloudflare.com cdn.jsdelivr.net fonts.gstatic.com; style-src 'self' 'unsafe-inline' cdn.cloudflare.com cdn.jsdelivr.net fonts.googleapis.com;"

What I am needing now instead is the equivalent of:

zola build
uglifyjs public/search_index.en.js public/elasticlunr.min.js public/search.js -o static/search_bundle.min.js -c -m
zola build

the first zola build is simply to generate a current search_index.en.js, then I issue uglifyjs to bundle these 3 files into a single search bundle, then issue another zola build to deploy with the search bundle

ALSO! if anyone knows how to accomplish this without running zola build twice then please let me know. (maybe a way to generate the elasticlunr index without using zola build?)

I actually figured this out, you can see it here: