WP Vite
Wordpress Plugin for Vite
★ 15stars
298release downloads
≈10active sites
71composer installs
4forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/evo-mark/wp-vite/releases/download/v1.3.2/evomark-wp-vite.zipAlso on Packagist as southcoastweb/wp-vite:
composer require southcoastweb/wp-viteFrom the readme
WP Vite
Bring Vite's lightning fast build process to your Wordpress theme or plugin
Usage
Inside your plugin entry file or function.php file (for themes) simply include the following:
use EvoMark\WpVite\WpVite;
$vite = new WpVite;
$vite-enqueue([
'namespace' = 'theme-vite',
'input' = ["src/main.js"],
]);
The enqueue function takes a single associative array as a parameter. Here are the properties it can contain:
| arg | type | required | description |
| --- | ---- | -------- | ----------- |
| namespace | string | true | A unique namespace for the manifest being enqueued |
| input | string\|string[] | true | One or more entry files. These must match exactly the ones defined in your Vite config file |
| dependencies | string[] | false | Wordpress JS dependencies for your manifest. In production, these will be mapped to the window object |
| admin | bool | false | Enqueue the inputs for Wordpress admin pages instead of frontend |
| absolutePath | string | false | Override the absolute path of your build folder |
| absoluteUrl | string | false | Override the absolute URL of your build folder |
| buildDirectory | string | false | Override the name
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.3.2 | Oct 25, 2025 | evomark-wp-vite.zip | 9 |
| v1.3.1 | Sep 9, 2025 | evomark-wp-vite.zip | 3 |
| v1.3.0 | Jul 16, 2025 | evomark-wp-vite.zip | 7 |
| v1.2.1 | Dec 21, 2024 | evomark-wp-vite.zip | 10 |
| v1.2.0 | Dec 21, 2024 | evomark-wp-vite.zip | 2 |
| v1.1.1 | Nov 17, 2024 | evomark-wp-vite.zip | 27 |
| v1.1.0 | Nov 17, 2024 | evomark-wp-vite.zip | 1 |
| v1.0.3 | Jun 19, 2024 | evomark-wp-vite.zip | 16 |
| v1.0.2 | Dec 25, 2023 | evomark-wp-vite.zip | 29 |
| v1.0.0 | Jul 18, 2023 | — | — |
| v0.4.6 | Jul 15, 2023 | southcoastweb-wp-vite.zip | 4 |
| v0.4.5 | Jul 13, 2023 | — | — |
| v0.4.4 | Jul 9, 2023 | southcoastweb-wp-vite.zip | 4 |
| v0.4.3 | Jul 9, 2023 | southcoastweb-wp-vite.zip | 4 |
| v0.4.2 | Jul 9, 2023 | southcoastweb-wp-vite.zip | 4 |
| v0.4.1 | Jul 9, 2023 | southcoastweb-wp-vite.zip | 4 |
| v0.4.0 | Jun 22, 2023 | southcoastweb-wp-vite.zip | 6 |
| v0.3.1 | Jun 21, 2023 | southcoastweb-wp-vite.zip | 5 |
| v0.3.0 | Jun 21, 2023 | southcoastweb-wp-vite.zip | 2 |
| v0.2.5 | Apr 30, 2023 | southcoastweb-wp-vite.zip | 119 |
| v0.2.4 | Apr 30, 2023 | southcoastweb-wp-vite.zip | 5 |
| v0.2.3 | Apr 30, 2023 | southcoastweb-wp-vite.zip | 7 |
| v0.2.2 | Apr 30, 2023 | southcoastweb-wp-vite.zip | 5 |
| v0.2.1 | Apr 30, 2023 | southcoastweb-wp-vite.zip | 5 |
| v0.2.0 | Apr 30, 2023 | wp-vite-v0.2.0.zip | 6 |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.