Reputation: 8576
I'm trying to use the command line tools of UglifyJs to minify my files. On the git page it says to download it using npm: npm install uglify-js -g
.
Is that the only way to download it? My website doesn't use node.js so I'm wondering if there's an alternate way.
Upvotes: 2
Views: 390
Reputation: 2489
You can download it directly from it's github repo. However, I do agree with JohnnyHK it's better to install via npm
as it will handle any dependancies required by UglifyJS.
Upvotes: 1
Reputation: 311835
When installing a module using npm -g
, you're installing a command-line utility that uses node.js for its run-time rather than a module for a node.js based web site.
So it's still easiest to use npm
to install it.
Upvotes: 1