Skip to content

Commit

Permalink
Merge pull request #24 from kucrut/pr-23-fixes-changelog
Browse files Browse the repository at this point in the history
CS fixes & changelog for PR 23
  • Loading branch information
kucrut authored Nov 26, 2022
2 parents 937bf81 + c4997e5 commit cb03db3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fifty-plums-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kucrut/vite-for-wp': minor
---

Improve production assets handling, props @slamkajs.
2 changes: 1 addition & 1 deletion vite-for-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function prepare_asset_url( string $dir ) {

['address' => $address, 'fullPath' => $full_path, 'removablePath' => $removable_path] = $url_parts;

return sprintf( '%s%s' , $address, str_replace( $removable_path, "", $full_path ) );
return sprintf( '%s%s', $address, str_replace( $removable_path, '', $full_path ) );
}

/**
Expand Down

0 comments on commit cb03db3

Please sign in to comment.