Hey.

When working with C++ stuff, I usually see myself running the stirp over the 
resulting binary to press down the filesize on a Release target. However, there 
seems to be no such thing for JavaScript.

What I am actually wanting to do, is to shrink jQuery. It has tons, and tons, 
and tons of stuff inside of it, and it is like so much, I only use 10% of it, 
when it comes to it.

So I was looking for some tool that strips unused code…

Since I am using WebPack, I get all the code, transpiled, compiled, and 
whatever, into a single target. This target, I can edit using a plugin. (Well, 
could. Plugin docs are still sparse.)

Do you know a tool that does dead code elimination, that actually works? I am 
aware of refs and such. Like:

        var getElem = document.getElementById;
        var cont = getElemen(…);

… but there must be a way. Somehow, at least I hope so.

Kind regards, Ingwie.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/8BD73ECD-57F9-48BF-BA51-951EE32A5609%40me.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to