Is there any unjs way (e.g. uncss)

If we use Bootstrap or other interface frameworks (not quite sure), we can customize by deselecting the unused selector and then loading it.

When it comes to javascript, for example jquery , the minimum version 1.10.2 is 90.92kb ( source ). If I use only one or two effects, is there a unjs way, like a CSS uncss way.

+6
source share
1 answer

You can use the Google Closure Compiler . It parses your JavaScript, parses it, removes dead code, and overwrites and minimizes the rest. It also checks syntax, variable references, and types, and warns of common JavaScript errors. "

Bransey Dead JS Eliminator is also available on Github.

+5
source

Source: https://habr.com/ru/post/970948/


All Articles