Sign in to follow this  

Simple code minifier?

Recommended Posts

UglifyJS is the defacto, as such there are multiple ways to include it into your project, its available as an 'executable' (via node) so any tooling can wrap it without worry, I'd suggest using the terminal to run your build process properly rather than rely on editor plugins. If you're set on editor plugins look for another uglify one, there will be a couple, maybe you're just using a dud one.

Closure Compiler used to be very popular, you might find a plugin that works better with that. Closure can be very powerful, powerful enough to break your code sometimes if you max the minification.

As you're on Windows I suggest using a bash emulator, Github ships a good bash shell that can be used with Windows. I say this because whilst most tooling you use in the JS world will run via node you might find plenty of stuff that expects a bash (or bourne) shell to work (which is unix) and you'll have more success getting stuff to run if you go that route. I'm a Mac or a Linux so maybe someone with more Windows experience could provide an alternative?

Share this post

Link to post
Share on other sites
44 minutes ago, yagerGames said:

Than the impossible task of getting it done on windows. Good lord!

Ha ha, maybe I'm underestimating the sheer horror!

Git bash used to work well when I was developing a port for windows store but, that was a looong time ago now.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.