Use @roots/vite-plugin (#3231)

Co-authored-by: Brandon <brandon@tendency.me>
This commit is contained in:
Ben Word
2025-02-22 15:13:42 -05:00
committed by GitHub
parent 8cc24bab95
commit 2f2d67fb7f
7 changed files with 264 additions and 792 deletions

View File

@@ -1,11 +1,7 @@
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite';
import laravel from 'laravel-vite-plugin'
import {
wordpressPlugin,
wordpressRollupPlugin,
wordpressThemeJson,
} from './resources/js/build/wordpress'
import { wordpressPlugin, wordpressThemeJson } from '@roots/vite-plugin';
export default defineConfig({
base: '/app/themes/sage/public/build/',
@@ -22,7 +18,6 @@ export default defineConfig({
}),
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