Merge pull request #9340 from gboudreau/dev/chrome-devconsole-sourcemap-warnings
Resolves warnings in Chrome Dev Console
This commit is contained in:
commit
2d66f04aa0
|
@ -30,7 +30,10 @@ $vendors = $data['vendor'];
|
|||
|
||||
$vendorjs = fopen(__DIR__.'/../core/vendor/core.js', 'w');
|
||||
foreach($vendors as $vendor) {
|
||||
fwrite($vendorjs, file_get_contents(__DIR__.'/../core/vendor/'.$vendor));
|
||||
$content = file_get_contents(__DIR__.'/../core/vendor/'.$vendor);
|
||||
// Remove the sourceMappingURL references from the merged file
|
||||
$content = preg_replace('@//# sourceMappingURL=.*$@', '', $content);
|
||||
fwrite($vendorjs, $content);
|
||||
fwrite($vendorjs, PHP_EOL);
|
||||
}
|
||||
fclose($vendorjs);
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue