pull in v11.0.1 from upstream
This commit is contained in:
37
vite.config.js
Normal file
37
vite.config.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import laravel from 'laravel-vite-plugin'
|
||||
import { wordpressPlugin, wordpressThemeJson } from '@roots/vite-plugin';
|
||||
|
||||
export default defineConfig({
|
||||
base: '/app/themes/sage/public/build/',
|
||||
plugins: [
|
||||
laravel({
|
||||
input: [
|
||||
'resources/css/app.scss',
|
||||
'resources/js/app.js',
|
||||
'resources/css/editor.scss',
|
||||
'resources/js/editor.js',
|
||||
],
|
||||
refresh: true,
|
||||
url: process.env.APP_URL,
|
||||
}),
|
||||
|
||||
wordpressPlugin(),
|
||||
|
||||
// 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({
|
||||
disableTailwindColors: true,
|
||||
disableTailwindFonts: true,
|
||||
disableTailwindFontSizes: true,
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@scripts': '/resources/js',
|
||||
'@styles': '/resources/css',
|
||||
'@fonts': '/resources/fonts',
|
||||
'@images': '/resources/images',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user