Anyone Know how to include uglifyjs in netlify build action?

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

publish = "public"
command = "zola build"

ZOLA_VERSION = "0.16.0"

command = "zola build --base-url $DEPLOY_PRIME_URL"

  for = "/*"
    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:; frame-src 'self'; media-src 'self' data:; font-src 'self'; style-src 'self' 'unsafe-inline';"

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: