Skip to content

Sync html/css with js #3

Open
Open

Description

@Brebl

Id and class attribute values are not in sync with obfuscation

Activity

  1. luz-arreola commented on Aug 17, 2023

    @luz-arreola

    If our javascript does contain IDs and CLASSes, can we avoid this issue by simply disabling javascript obfuscation?

    I have not downloaded/compiled this library yet and I know that I really should test myself. My javascript makes heavy use of jquery. By turning obfuscation off, should the following javascript minify properly:

    $(this).doSomething();

    $('html, body, tr[data-href]').doSomething();

    $("#myId").hide(); // select by ID

    $(".myClass").hide(); // select by CLASS

    $("div.myClass").hide(); // select DIVs with CLASS

  2. Brebl commented on Aug 19, 2023

    @Brebl
    OwnerAuthor

    Correct. Just don't use -f option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions