soranoo / next-css-obfuscator

A package deeply inspired by PostCSS-Obfuscator but for Next.js.
https://next-css-obfuscator.vercel.app
MIT License
83 stars 3 forks source link

Prefix with semantic in CSS/SCSS does not work......... #42

Closed codyng closed 2 months ago

codyng commented 3 months ago

See the example below:

<section className="someclassname">
    <div className="block-1">
        ...
    </div>
</section>

It does not work with below syntax:

section.someclassname {
    .block-1 {
        ...
    }
}

But it works with below syntax ONLY:

.someclassname {
    .block-1 {
        ...
    }
}

Only the "someclassname" in HTML is obfuscated but not in CSS. It remained section.someclassname{.block-1{...

If works fine if I took out "section." in the CSS.

Same cases for other semantic prefixes, e.g. div, button

div.name {
    .style-1 {
    }
}

Thank you.

soranoo commented 3 months ago

Can I have ur conversion table, it/they should be under the <root>/next-css-obfuscator/

soranoo commented 3 months ago

@Avishake2017 STOP spreading malware

soranoo commented 3 months ago

@Gaurav9812 STOP spreading malware

soranoo commented 2 months ago

Please open a new issue if you reencounter it.