forked from microweber/microweber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
53 lines (47 loc) · 1.74 KB
/
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
46
47
48
49
50
51
52
53
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
import istanbul from 'vite-plugin-istanbul';
export default defineConfig({
build: {
open: true,
port: 3000,
assetsInlineLimit: 0,
outDir: './public/build',
manifest: "manifest.json"
},
plugins: [
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
laravel({
input: [
// 'resources/css/app.css',
// 'resources/js/app.js',
// 'userfiles/modules/microweber/api/live-edit-app/index.js',
// 'userfiles/modules/microweber/api/live-edit-app/app.js',
'src/MicroweberPackages/LiveEdit/resources/js/api-core/core/css/scss/liveedit.scss',
'src/MicroweberPackages/LiveEdit/resources/js/ui/live-edit-app.js',
'src/MicroweberPackages/LiveEdit/resources/js/ui/live-edit-page-scripts.js',
'src/MicroweberPackages/LiveEdit/resources/js/ui/admin-app.js',
'src/MicroweberPackages/LiveEdit/resources/js/ui/apps/ElementStyleEditor/element-style-editor-app.js',
/// 'resources/css/microweber-admin-filament.css',
],
publicDirectory: "public",
refresh: true,
}),
istanbul({
include: 'src/MicroweberPackages/LiveEdit/*',
exclude: ['node_modules', 'tests/'],
extension: [ '.js', '.ts', '.vue' ],
forceBuildInstrument: true,
requireEnv: true,
//requireEnv: false,
})
]
});