36 lines
913 B
JavaScript
36 lines
913 B
JavaScript
import { defineConfig } from 'vite'
|
|
import laravel from 'laravel-vite-plugin'
|
|
import {
|
|
wordpressPlugin,
|
|
wordpressRollupPlugin,
|
|
wordpressThemeJson,
|
|
} from './resources/js/build/wordpress'
|
|
import tailwindConfig from './tailwind.config.js'
|
|
|
|
export default defineConfig({
|
|
base: '/app/themes/sage/public/build/',
|
|
plugins: [
|
|
laravel({
|
|
input: [
|
|
'resources/css/app.css',
|
|
'resources/js/app.js',
|
|
'resources/css/editor.css',
|
|
'resources/js/editor.js',
|
|
],
|
|
refresh: true,
|
|
}),
|
|
|
|
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
|
|
wordpressThemeJson({
|
|
tailwindConfig,
|
|
disableTailwindColors: false,
|
|
disableTailwindFonts: false,
|
|
disableTailwindFontSizes: false,
|
|
}),
|
|
],
|
|
})
|