Releases: nystudio107/craft-vite
Releases · nystudio107/craft-vite
Release list
Version 1.0.7
Added
- Added a
includeReactRefreshShimsetting that will automatically include the required shim forreact-refreshwhen the Vite dev server is running (#5)
Changed
- Removed custom user/agent header that was a holdover from
curl - Re-worked how the various JavaScript shims are stored and injected
Version 1.0.6
Changed
- Change the default
useDevServersetting toApp::env('ENVIRONMENT') === 'dev'(#6) - Refactored the code from a monolithic
ViteServiceto helpers, as appropriate
Fixed
- Fixed an issue where it was outputting
type="nomodule"for legacy scripts, when it should have just beennomodule
Version 1.0.4
Added
- Added the
devServerInternalsetting back in, along withcheckDevServerfor people who want the fallback behavior (#2)
Changed
- Use
PRIMARY_SITE_URLin the default config instead ofSITE_URL - Switch over to VitePress for the docs
Version 1.0.3
Changed
- Crawl the
manifest.jsondependency graph recursively to look for CSS files
Fixed
- Don't call any AssetManager methods in the component
init()method during console requests
Version 1.0.2
Changed
- Removed entirely the
devServerInternalsetting, which isn't necessary (we just depend on you setting theuseDevServerflag correctly instead), and added setup complexity
Version 1.0.1
Changed
- Added initial documentation
- Updated default
config.php