🎨 Simplify WordPress dependency handling (#3202)

This commit is contained in:
Ben Word
2025-01-14 08:10:27 -05:00
committed by GitHub
parent 713594d768
commit 41e232bcdd
2 changed files with 48 additions and 126 deletions

View File

@@ -1,10 +1,6 @@
import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin'
import {
wordpressPlugin,
wordpressRollupPlugin,
wordpressThemeJson,
} from './resources/js/build/wordpress'
import { extractWordPressDependencies, processThemeJson } from './resources/js/build/wordpress'
import tailwindConfig from './tailwind.config.js'
export default defineConfig({
@@ -18,13 +14,11 @@ export default defineConfig({
],
refresh: true,
}),
wordpressPlugin(),
wordpressRollupPlugin(),
extractWordPressDependencies(),
// 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
wordpressThemeJson({
processThemeJson({
tailwindConfig,
disableTailwindColors: false,
disableTailwindFonts: false,