Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

UglifyJS2 as default, remove UglifyJS1

  • Loading branch information...
commit 341765176271035a83d00f77d5e4b7ecdd0d51a8 1 parent df001fc
Rodolphe Stoclin authored
21 Readme.md
View
@@ -8,8 +8,6 @@
- Google Closure Compiler --version 2388
- - UglifyJS
-
- UglifyJS2
- Sqwish
@@ -91,17 +89,6 @@ new compressor.minify({
}
});
-// Using UglifyJS2 for JS
-new compressor.minify({
- type: 'uglifyjs2',
- fileIn: 'public/js/base.js',
- fileOut: 'public/js/base-onefile-uglify2.js',
- callback: function(err){
- console.log('Uglifyjs2');
- console.log(err);
- }
-});
-
// Using Sqwish for CSS
new compressor.minify({
type: 'sqwish',
@@ -177,14 +164,6 @@ new compressor.minify({
https://github.com/mishoo/UglifyJS
-## UglifyJS2
-
- UglifyJS2 can compress only JavaScript files.
-
- It will throw an error if you try with CSS files.
-
- https://github.com/mishoo/UglifyJS2
-
## Sqwish
Sqwish can compress only CSS files.
11 examples/server.js
View
@@ -58,17 +58,6 @@ new compressor.minify({
}
});
-// Using UglifyJS2
-new compressor.minify({
- type: 'uglifyjs2',
- fileIn: 'public/js/base.js',
- fileOut: 'public/js/base-onefile-uglify2.js',
- callback: function(err){
- console.log('Uglifyjs2');
- console.log(err);
- }
-});
-
new compressor.minify({
type: 'no-compress',
fileIn: ['public/js/base.js', 'public/js/base2.js'],
3  lib/node-minify.js
View
@@ -69,9 +69,6 @@ var minify = (function (undefined) {
case 'uglifyjs':
command = prefix + '"' + __dirname + '/../node_modules/uglify-js/bin/uglifyjs" --output "' + this.fileOut + '" ' + (this.copyright ? '' : '--no-copyright') + ' "' + this.fileIn + '" ' + this.options.join(' ');
break;
- case 'uglifyjs2':
- command = prefix + '"' + __dirname + '/../node_modules/uglify-js2/bin/uglifyjs2" --output "' + this.fileOut + '" ' + (this.copyright ? '' : '--no-copyright') + ' "' + this.fileIn + '" ' + this.options.join(' ');
- break;
case 'sqwish':
command = prefix + '"' + __dirname + '/../node_modules/sqwish/bin/sqwish" "' + this.fileIn + '" -o "' + this.fileOut + '" ' + this.options.join(' ');
break;
3  package.json
View
@@ -1,7 +1,7 @@
{
"name": "node-minify",
"version": "0.7.1",
- "description": "Javascript / CSS minifier based on YUI Compressor / Google Closure Compiler / UglifyJS / UglifyJS2 / Sqwish",
+ "description": "Javascript / CSS minifier based on YUI Compressor / Google Closure Compiler / UglifyJS2 / Sqwish",
"homepage": "https://github.com/srod/node-minify",
"author": {
"name": "Rodolphe Stoclin",
@@ -18,7 +18,6 @@
"dependencies": {
"uglify-js": "*",
- "uglify-js2": "*",
"sqwish": "*"
},
Please sign in to comment.
Something went wrong with that request. Please try again.