🎨 Simplify WordPress dependency handling (#3202)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user