-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraftable-pro.vite.config.js
45 lines (44 loc) · 1010 Bytes
/
craftable-pro.vite.config.js
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
40
41
42
43
44
45
import { defineConfig, splitVendorChunkPlugin } from "vite";
import laravel from "laravel-vite-plugin";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";
import tailwindcss from "tailwindcss";
export default defineConfig({
plugins: [
splitVendorChunkPlugin(),
laravel({
input: [
"resources/js/craftable-pro/index.ts",
"resources/css/craftable-pro.css",
],
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
css: {
postcss: {
plugins: [
tailwindcss({
config: "./craftable-pro.tailwind.config.js",
}),
],
},
},
resolve: {
alias: {
"@": resolve(__dirname, "./resources/js"),
"craftable-pro": resolve(
__dirname,
"./vendor/brackets/craftable-pro/resources/js"
),
ziggy: resolve(__dirname, "./vendor/tightenco/ziggy"),
},
},
});