-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
vite.config.js
35 lines (31 loc) · 1.08 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
import path from 'path';
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import { svelte } from '@sveltejs/vite-plugin-svelte';
export default defineConfig({
plugins: [
laravel([
'resources/scss/app.scss',
'resources/js/app.js',
'resources/js/DeckForm.js',
'resources/js/IndexSessionView.js',
'resources/js/IndexStatsView.js',
'resources/js/Messages.js',
'resources/js/NewSessionView.js',
'resources/js/QuestionView.js',
'resources/js/SessionView.js',
'resources/js/UserSettingsView.js',
'node_modules/bootstrap/dist/js/bootstrap.esm.js',
'node_modules/trix/dist/trix.esm.js',
]),
svelte({
}),
],
resolve: {
alias: {
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
'~bootstrap-icons': path.resolve(__dirname, 'node_modules/bootstrap-icons'),
'~trix': path.resolve(__dirname, 'node_modules/trix'),
}
}
});