https://github.com/mrottow/ddev-wordpress-vite
This add-on simply adds a yaml config that exposes and routes the ports necessary to load up the Vite dev server ande make use of their HMR features inside DDEV.
https://github.com/mrottow/ddev-wordpress-vite
ddev vite wordpress
Last synced: 3 months ago
JSON representation
This add-on simply adds a yaml config that exposes and routes the ports necessary to load up the Vite dev server ande make use of their HMR features inside DDEV.
- Host: GitHub
- URL: https://github.com/mrottow/ddev-wordpress-vite
- Owner: mrOttoW
- Created: 2024-12-13T01:52:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-13T02:14:40.000Z (over 1 year ago)
- Last Synced: 2025-02-14T04:50:04.619Z (over 1 year ago)
- Topics: ddev, vite, wordpress
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
What is ddev-wordpress-vite?
This add-on simply adds a yaml config that exposes and routes the ports necessary to load up the Vite dev server ande make use of their HMR features inside DDEV.
You can read more about ViteJS on [vitejs.dev](https://vitejs.dev)
## Getting started
Install the DDEV add-on:
For DDEV v1.23.5 or above run
```shell
ddev add-on get mrOttoW/ddev-wordpress-vite
```
For earlier versions of DDEV run
```shell
ddev get mrOttoW/ddev-wordpress-vite
```
Then restart your project
```shell
ddev restart
```
Or simply bootstrap a new WP project with these combined commands using this add-on: (make sure to change title & URL inside `wp core install` command accordingly)
For DDEV v1.23.5 or above run
```shell
mkdir wordpress
ddev config --docroot=wordpress --project-type=wordpress
ddev add-on get mrOttoW/ddev-wordpress-vite
ddev start
ddev exec wp core download --path="wordpress"
ddev exec wp core install --path="wordpress" --title="WPVitePlayground" --admin_name="admin" --admin_password="password" --admin_email="admin@local.ddev" --url="https://wp-vite-playground.ddev.site"
```
For earlier versions of DDEV run
```shell
mkdir wordpress
ddev config --docroot=wordpress --project-type=wordpress
ddev get mrOttoW/ddev-wordpress-vite
ddev start
ddev exec wp core download --path="wordpress"
ddev exec wp core install --path="wordpress" --title="WPVitePlayground" --admin_name="admin" --admin_password="password" --admin_email="admin@local.ddev" --url="https://wp-vite-playground.ddev.site"
```