- An instance of
ViteHelperConfigcan now be initialized only with a config key (string) - The
ViteScriptsHelperacceptsstringfor the$configargument
- New convenience methods for the
ViteScriptsHelper:- The methods
$this->ViteScripts->pluginScript($pluginName)as well aspluginCss()were added to simplify the usage of the helper with plugins that use Vite. - The new methods assume you want the production build, but you can set the
$devModeflag totrue.
- The methods
ViteHelperConfig(internal changes):- Two configs can now be merged.
- The
$configarray is nowpublic readonly.
- Autoloading of the manifest.json for plugins. When the config passed to the helper defines a plugin name through the
config key
pluginand does not specify a fill path to the manifest, the plugin expects the manifest.json to be available at/your/plugin_root/webroot/manifest.json.