-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvite.config.js
52 lines (49 loc) · 1.68 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
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import path from 'path'
export default defineConfig({
plugins: [
laravel([
'resources/css/app.css',
'resources/css/homeHero.css',
'resources/css/forgotPasswordPage.css',
'resources/css/aboutPage.css',
'resources/css/bloodDonationBenefits.css',
'resources/css/cta.css',
'resources/css/userDashboard.css',
'resources/css/footer.css',
'resources/css/stats.css',
'resources/css/loginPage.css',
'resources/css/registerPage.css',
'resources/css/donorsPage.css',
'resources/css/faq.css',
'resources/css/bootstrap.css',
'resources/css/bootstrap-rtl.css',
'resources/js/app.js',
'resources/js/donorsPage.js',
'resources/js/gettingDairas.js',
'resources/js/tsPracticles.js',
'resources/js/tsPracticlesEngine.js',
'resources/js/userDashboard.js',
'resources/js/registerPage.js',
'resources/js/passwordValidationForgotPassword.js',
'resources/js/donorsSearchFormValidation.js',
]),
{
name: 'blade',
handleHotUpdate({ file, server }) {
if (file.endsWith('.blade.php')) {
server.ws.send({
type: 'full-reload',
path: '*',
});
}
},
},
],
resolve: {
alias: {
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
}
},
});