Merge pull request #9340 from gboudreau/dev/chrome-devconsole-sourcemap-warnings
Resolves warnings in Chrome Dev Console
This commit is contained in:
commit
2d66f04aa0
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
|
|
6
core/vendor/core.js
vendored
6
core/vendor/core.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue