Skip to content

Commit

Permalink
fix script html tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bariscodefxy authored May 21, 2023
1 parent 8a89098 commit b1dd465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebpackPHP/WebpackPHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public function asset($file_regex = "", $asset_type = "script", $assets_dir = ""
if ( $asset_type == "style" )
return "<link rel=\"stylesheet\" href=\"" . $assets_dir . $asset . "\">";
else if ($asset_type == "script")
return "<script type=\"text/javascript\" src=\"" . $assets_dir . $asset . "\">";
return "<script type=\"text/javascript\" src=\"" . $assets_dir . $asset . "\"></script>";
else
throw new \Exception("WebpackPHP::asset(): unknown asset type");
}

}
}

0 comments on commit b1dd465

Please sign in to comment.