Skip to content

Commit

Permalink
Item14555: fix params for uglifyjs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Dec 5, 2017
1 parent 580fdf6 commit f7b61a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions BuildContrib/build.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env perl
use strict;
use warnings;

unless ( scalar(@ARGV) ) {
print <<DOC;
Build an extension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,12 @@ sub _uglifyjs {
my $lcall = $ENV{'LC_ALL'};
my $cmd;

$cmd = "uglifyjs $from";
$cmd = "uglifyjs -m -c -- $from";

unless ( $this->{-n} ) {
$cmd .= " -o $to";
$cmd .= " > $to";
}

$cmd .= ' -b beautify=false,ascii-only=true ';

warn "$cmd\n";
my $out = `$cmd`;
$ENV{'LC_ALL'} = $lcall;
Expand Down

0 comments on commit f7b61a4

Please sign in to comment.