-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js.advanced.example
53 lines (47 loc) · 1.32 KB
/
vite.config.js.advanced.example
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
46
47
48
49
50
51
52
53
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import autoprefixer from "autoprefixer";
// import { viteStaticCopy } from 'vite-plugin-static-copy'
// import copy from 'rollup-plugin-copy';
export default defineConfig({
build: {
emptyOutDir: true,
},
plugins: [
// viteStaticCopy({
// targets: [
// {
// src: 'themes/yourtheme/src/images/*',
// dest: 'public/images',
// },
// // {
// // src: path.resolve(__dirname, 'themes/yourtheme/src/fonts/*'),
// // dest: './public/fonts'
// // }
// ]
// }),
// copy({
// targets: [
// { src: 'themes/yourtheme/src/images/favicon.ico', dest: 'public/' },
// ],
// }),
laravel({
input: [
'themes/yourtheme/src/app.scss',
'themes/yourtheme/src/app.js',
// 'themes/yourtheme/cms/cms.scss',
// 'themes/yourtheme/cms/wysiwyg.scss',
],
refresh: { paths: [
'themes/yourtheme/templates/**',
]},
})
],
css: {
postcss: {
plugins: [
autoprefixer,
],
}
},
});