Skip to content

Releases: nystudio107/craft-plugin-vite

5.0.2

14 Aug 02:02
Compare
Choose a tag to compare

Added

  • Add a craft.vite.integrity() method that will extract the integrity hash (for building a Content Security Policy)
  • Added an includeScriptOnloadHandler config setting that allows you to disable the adding of an onload handler on the <script> tags (useful when implementing a Content Security Policy)

Changed

  • Filter out empty attributes so they don't render on the <script> tags

Fixed

  • Use strrpos instead of strpos when attempting to extract a file name without the hash (#28)

4.0.12

14 Aug 02:01
Compare
Choose a tag to compare

Added

  • Add a craft.vite.integrity() method that will extract the integrity hash (for building a Content Security Policy)
  • Added an includeScriptOnloadHandler config setting that allows you to disable the adding of an onload handler on the <script> tags (useful when implementing a Content Security Policy)

Changed

  • Filter out empty attributes so they don't render on the <script> tags

Fixed

  • Use strrpos instead of strpos when attempting to extract a file name without the hash (#28)

1.0.36

14 Aug 02:01
Compare
Choose a tag to compare

Added

  • Add a craft.vite.integrity() method that will extract the integrity hash (for building a Content Security Policy)
  • Added an includeScriptOnloadHandler config setting that allows you to disable the adding of an onload handler on the <script> tags (useful when implementing a Content Security Policy)

Changed

  • Filter out empty attributes so they don't render on the <script> tags

Fixed

  • Use strrpos instead of strpos when attempting to extract a file name without the hash (#28)

5.0.1

13 Jun 03:42
Compare
Choose a tag to compare

Added

  • By default, only load the Vite AssetBundle if the request is a CP request or a preview request. This can be overridden via the useForAllRequests VitePluginService property (#27)

Fixed

  • Normalize file system paths before fetching them with file_get_contents() (#25)

4.0.11

13 Jun 03:41
Compare
Choose a tag to compare

Added

  • By default, only load the Vite AssetBundle if the request is a CP request or a preview request. This can be overridden via the useForAllRequests VitePluginService property (#27)

Fixed

  • Normalize file system paths before fetching them with file_get_contents() (#25)

1.0.35

13 Jun 03:38
Compare
Choose a tag to compare

Added

  • By default, only load the Vite AssetBundle if the request is a CP request or a preview request. This can be overridden via the useForAllRequests VitePluginService property (#27)

Fixed

  • Normalize file system paths before fetching them with file_get_contents() (#25)

5.0.0

15 Apr 19:23
Compare
Choose a tag to compare

Added

  • Stable release for Craft CMS 5

5.0.0-beta.3

02 Mar 05:08
Compare
Choose a tag to compare
5.0.0-beta.3 Pre-release
Pre-release

Fixed

  • Fixed an issue where craft.vite.entry() would fail if you were using Vite 5 or later, due to the ManifestHelper::fileNameWithoutHash() function not working correctly (#24)

4.0.10

02 Mar 05:07
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where craft.vite.entry() would fail if you were using Vite 5 or later, due to the ManifestHelper::fileNameWithoutHash() function not working correctly (#24)

1.0.34

02 Mar 05:07
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where craft.vite.entry() would fail if you were using Vite 5 or later, due to the ManifestHelper::fileNameWithoutHash() function not working correctly (#24)