M
M
Magnus Keef2020-03-03 18:35:34
css
Magnus Keef, 2020-03-03 18:35:34

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

1 answer(s)
A
Alexander Aksentiev, 2020-03-03
@SecurityYourFingers

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 @mediathat 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 question

Ask a Question

731 491 924 answers to any question