Releases: nystudio107/craft-plugin-vite
Releases · nystudio107/craft-plugin-vite
Version 1.0.18
Added
- Added the
.entry()
function to retrieve and entry from themanifest.json
to a JavaScript file, CSS file, or asset
Version 1.0.17
Fixed
- Fixed an issue where the needle/haystack logic was reversed in
strpos()
which could cause it to not match properly in some setups (#5)
Version 1.0.15
Fixed
- Fixed an issue with potentially duplicated
modulepreload
links by adding tags via an associative array (#16)
Version 1.0.14
Added
- Added
craft.vite.asset()
to retrive assets such as images that are imported in JavaScript or CSS
Version 1.0.13
Changed
- Changed the
DEVMODE_CACHE_DURATION
to1
second (#3)
Version 1.0.12
Changed
- Only do setup in the
VitePluginServce::init()
method for CP requests
Version 1.0.11
Added
- Added Preload Directives Generation that will automatically generate
<link rel="modulepreload">
directives for entry chunks and their direct imports (PR#2)
Version 1.0.10
Added
- Added a
craft.vite.devServerRunning()
method to allow you to determine if the Vite dev server is running or not from your Twig templates (nystudio107/craft-vite#10)
Version 1.0.9
Changed
- Switched the
checkDevServer
test file to@vite/client
to accommodate with the change in Vite^2.4.0
to use the.mjs
extension (nystudio107/craft-vite#11)
Version 1.0.8
Changed
- Roll back the automatic inclusion of
@vite/client.js
(nystudio107/craft-vite#9)