조건부 주석
Pro Tip
특수 주석을 사용하면 코드의 특정 부분만 난독화 대상에서 선택적으로 제외할 수 있습니다.
// This code WILL be obfuscated
var secret = 'protected';
// javascript-obfuscator:disable
var config = {
apiUrl: 'https://api.example.com', // Stays readable
version: '1.0.0'
};
// javascript-obfuscator:enable
// Obfuscation resumes here
function sensitiveLogic() { ... }
파일의 나머지 부분은 난독화를 유지하면서, 특정 설정 블록이나 버전 문자열, 인라인 문서를 결과물에서 그대로 읽을 수 있게 남겨두어야 할 때 유용합니다.
