Skip to content

Commit ecb2810

Browse files
committed
warn about deprecated --skip-minify
1 parent 6eb8455 commit ecb2810

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bin/hsm.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ switch (commands[0]) {
112112
case `golf`:
113113
case `minify`: {
114114
const noMinifyOption = popOption(`no-minify`, `skip-minify`)
115+
116+
if (noMinifyOption && noMinifyOption.name != `no-minify`) {
117+
console.warn(colourF(`\
118+
Warning: ${formatOption(noMinifyOption.name)} is being deprecated and will be removed in the next minor
119+
release of HSM
120+
You should switch to using its alias ${colourN(`--no-minify`)}\n`
121+
))
122+
}
123+
115124
const mangleNamesOption = popOption(`mangle-names`)
116125
const forceQuineCheatsOption = popOption(`force-quine-cheats`)
117126
const noMinifyIncompatibleOption = mangleNamesOption || forceQuineCheatsOption

0 commit comments

Comments
 (0)