Skip to content

Commit

Permalink
Don't keep comments inside minified JS
Browse files Browse the repository at this point in the history
--HG--
branch : 2.14
  • Loading branch information
franck-paul committed Aug 14, 2018
1 parent e2dd10a commit e11a0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-tools/min-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
require dirname(__FILE__) . '/Minifier.php';

$content = file_get_contents($js);
$res = \JShrink\Minifier::minify($content);
$res = \JShrink\Minifier::minify($content, array('flaggedComments' => false));

if (($fp = fopen($js, 'wb')) === false) {
throw new Exception(sprintf('Unable to open file %s', $js));
Expand Down

0 comments on commit e11a0bb

Please sign in to comment.