Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uglify is not minifying the file #27

Closed
cponakan opened this issue Aug 20, 2013 · 1 comment
Closed

uglify is not minifying the file #27

cponakan opened this issue Aug 20, 2013 · 1 comment

Comments

@cponakan
Copy link

When I do,

// Using UglifyJS for JS
new compressor.minify({
type: 'uglifyjs',
fileIn: 'public/js/base.js',
fileOut: 'public/js/base-onefile-uglify.js',
callback: function(err){
console.log(err);
}
});

It did not minify file. It was able to minimise when I replaced the command in node-minify with following. I have removed quotes around uglifyjs.

            case 'uglifyjs':
                command = prefix  + __dirname + '/../node_modules/uglify-js/bin/uglifyjs --output "' + this.fileOut + '" ' + (this.copyright ? '' : '--no-copyright') + ' "' + this.fileIn + '" ' + this.options.join(' ');
@srod
Copy link
Owner

srod commented Aug 24, 2013

Can you check with 0.8.1 newest version ?

@srod srod closed this as completed Sep 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants