🩹 Dev server: fix WP dependency handling (#3207)

* Revert "🎨 Simplify WordPress dependency handling" (#3202)
* 🩹 Fix dev server error
This commit is contained in:
Ben Word
2025-01-20 15:57:09 -05:00
committed by GitHub
parent 2ff215a3df
commit 37e3773d88
2 changed files with 148 additions and 44 deletions

View File

@@ -1,6 +1,10 @@
import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin'
import { extractWordPressDependencies, processThemeJson } from './resources/js/build/wordpress'
import {
wordpressPlugin,
wordpressRollupPlugin,
wordpressThemeJson,
} from './resources/js/build/wordpress'
import tailwindConfig from './tailwind.config.js'
export default defineConfig({
@@ -15,11 +19,13 @@ export default defineConfig({
],
refresh: true,
}),
extractWordPressDependencies(),
wordpressPlugin(),
wordpressRollupPlugin(),
// Generate the theme.json file in the public/build/assets directory
// based on the Tailwind config and the theme.json file from base theme folder
processThemeJson({
wordpressThemeJson({
tailwindConfig,
disableTailwindColors: false,
disableTailwindFonts: false,