Answer the question
In order to leave comments, you need to log in
How to clean unused js, css code?
Comrades, throw some guides on cleaning up unused code, please.
Maybe someone has webpack or galp configs.
I know that everything can be googled, but I don’t have time to do it, the project is burning
Donatik on a 50r card whose config will work the first time
Answer the question
In order to leave comments, you need to log in
CSS only manually with the help of some browser extensions.
And then nothing will turn out normally without a good manual check and understanding of the code.
It will automatically clean up some very obvious pieces, and there is no guarantee that this will not break anything.
1. There are all sorts of things @media
that test hands will fall off
2. JS scripts, not to mention Vue / Reacts that can generate classes on the fly from nothing, for example.
3. JS, again, you need to check all possible conditions for triggering scripts and logic.
JS is an IDE to help, but in general everything is the same, everything is very dynamic so that some scripts can clearly say that it is used or not used.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question