-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
39 lines (36 loc) · 1.01 KB
/
vite.config.ts
File metadata and controls
39 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
import laravel from "laravel-vite-plugin";
import { wordpressPlugin, wordpressThemeJson } from "@roots/vite-plugin";
export default defineConfig({
base: "/build/",
plugins: [
tailwindcss(),
laravel({
input: [
"resources/css/app.css",
"resources/js/app.ts",
"resources/css/editor.css",
"resources/js/editor.ts",
],
refresh: true,
}),
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: false,
disableTailwindFonts: false,
disableTailwindFontSizes: false,
baseThemeJsonPath: './theme.json',
}),
],
resolve: {
alias: {
"@scripts": "/resources/js",
"@styles": "/resources/css",
"@fonts": "/resources/fonts",
"@images": "/resources/images",
},
},
});