swc/crates/swc_ecma_minifier/scripts/_/reduce/compare.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

8 lines
171 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
"$MINIFY" input.js
$SCRIPT_DIR/compare.js input.js output.js