-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
43 lines (39 loc) · 1.18 KB
/
vite.config.ts
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
import vuePlugin from '@vitejs/plugin-vue';
import path from 'path';
import { defineConfig } from 'vite';
import symfonyPlugin from 'vite-plugin-symfony';
export default defineConfig({
plugins: [
vuePlugin(),
symfonyPlugin({
stimulus: './assets/js/admin/vue/controllers.json',
}),
],
build: {
manifest: true,
rollupOptions: {
input: {
admin: './assets/js/admin/index.ts',
public: './assets/js/public/index.ts',
'worker-charts': './assets/js/misc/charts.js',
},
},
},
resolve: {
alias: {
/**
* The import aliases below are defined in multiple files. So remember to update them all if you change one.
* - tsconfig.json
* - vitest.config.ts
* - vite.config.js
*/
'@js': path.resolve(__dirname, 'assets/js/'),
'@fonts': path.resolve(__dirname, 'assets/fonts/'),
'@img': path.resolve(__dirname, 'assets/img/'),
'@styles': path.resolve(__dirname, 'assets/styles/'),
'@test': path.resolve(__dirname, 'assets/js/test/'),
'@utils': path.resolve(__dirname, 'assets/js/utils/'),
'@admin-fe': path.resolve(__dirname, 'assets/js/admin/vue/'),
},
},
});