jayarjo
jayarjo

Reputation: 16716

Is there any tool to check if js file is safe to compress?

Sometimes it happens that one missing character in a huge js file ruins the whole minification magic. Is there any tool that can check if js file can be compressed without errors prior to compression itself and of course point out where that potential problem is.

Upvotes: 1

Views: 956

Answers (1)

zzzzBov
zzzzBov

Reputation: 179046

Rather than simply validating your code, it's better to use a tool that helps you keep your code clean and organized.

JSLint and JSHint can both be used to help keep your code clean. If it's clean, it'll work in a minifier.

Upvotes: 3

Related Questions