Skip to content

5.0.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Aug 02:05
· 1 commit to develop-v5 since this release

Added

  • Added 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)