B
B
BonBon Slick2020-01-18 08:44:24
webpack
BonBon Slick, 2020-01-18 08:44:24

How to obfuscate third-party library classes?

Setting up CSS modules
And I have a question.
Some libraries modify the DOM directly, like adding style attributes or classes.
How to minify classes that are added from outside?
Example

<div class="sdfRf">
// after js triggered
<div class="jsLibClassName sdfRf" style="color: red;...">

Is there any universal way, or does each one either need to be added, re-picked?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question