Skip to content

Commit

Permalink
strip use stricts when combining js
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Feb 3, 2017
1 parent 0b0d92f commit f7f0d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/config_gen.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function get_module_assignments($settings) {
foreach ($mods as $mod) {
printf("scanning module %s ...\n", $mod);
if (is_readable(sprintf("modules/%s/site.js", $mod))) {
$js .= file_get_contents(sprintf("modules/%s/site.js", $mod));
$js .= str_replace("'use strict';", '', file_get_contents(sprintf("modules/%s/site.js", $mod)));
}
if (is_readable(sprintf("modules/%s/site.css", $mod))) {
$css .= file_get_contents(sprintf("modules/%s/site.css", $mod));
Expand Down

0 comments on commit f7f0d8a

Please sign in to comment.