- An instance of
ViteHelperConfig
can now be initialized only with a config key (string
) - The
ViteScriptsHelper
acceptsstring
for the$config
argument
- 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
$devMode
flag totrue
.
- The methods
ViteHelperConfig
(internal changes):- Two configs can now be merged.
- The
$config
array 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
plugin
and 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
.