Skip to content

Commit

Permalink
fix: minify removing defer attribute from script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 14, 2023
1 parent db796b7 commit f3f0e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/AssetsArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function minifyForced(Asset $asset): Asset
if ($asset->ext == 'css') $min = $asset->dir . $asset->filename . ".min.css";
else $min = $asset->dir . $asset->filename . ".min.js";

$asset = new Asset($min);
$asset = new Asset($min, $asset->suffix);
if ($this->rockfrontend()->isNewer($nomin, $min)) {
require_once __DIR__ . "/../vendor/autoload.php";
if ($asset->ext == 'js') $minify = new \MatthiasMullie\Minify\JS($nomin);
Expand Down

0 comments on commit f3f0e38

Please sign in to comment.