swc/crates/swc_ecma_minifier/scripts/reduce-all.sh
Donny/강동윤 1c1c9f0eae
fix(es/minifier): Fix bugs (#2955)
swc_ecma_minifier:
 - Improve the script for extracting inputs from next.js app.
 - Ensure the name is removed on inlining.
 - Respect `inline_prevented`.
2022-01-05 05:12:52 +09:00

7 lines
152 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
find ./inputs/ -type f -name '*.js' -print0 | xargs -0 -I {} sh -c '\
echo "Processing {}"
./scripts/reduce.sh {}'