swc/crates/swc_ecma_minifier/scripts/mangler/terser.sh

10 lines
362 B
Bash
Raw Normal View History

#!/usr/bin/env bash
#
# Generates reference output for the mangler, using terser
#
set -eu
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
find ./tests/terser -name 'input.js' | xargs -L 1 -P 16 -I {} $SCRIPT_DIR/terser-one.sh {} \;
find ./tests/fixture -name 'input.js' | xargs -L 1 -P 16 -I {} $SCRIPT_DIR/terser-one.sh {} \;