This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
webpack.mix.js
69 lines (63 loc) · 2.99 KB
/
webpack.mix.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
/* Copy */
mix.copyDirectory('resources/assets/img', 'public/assets/img');
mix.copy('node_modules/quill/dist/quill.snow.css',
'public/assets/style/css/quill.snow.css');
/* CSS */
mix.sass('resources/assets/style/sass/laravel/app.scss',
'public/assets/style/css/app.css').
sass('resources/assets/style/sass/style.scss',
'public/assets/style/css/style.css').
sass('resources/assets/style/sass/dashboard.scss',
'public/assets/style/css/dashboard.css').
sass('resources/assets/style/sass/task-detail.scss',
'public/assets/style/css/task-detail.css').
sass('resources/assets/style/sass/report.scss',
'public/assets/style/css/report.css').
version();
/* Copy JS */
mix.babel('node_modules/quill/dist/quill.min.js',
'public/assets/js/quill.min.js');
/* JS */
mix.js('resources/assets/js/custom.js', 'public/assets/js/custom.js').
js('resources/assets/js/time_tracker/time_tracker.js',
'public/assets/js/time_tracker/time_tracker.js').
js('resources/assets/js/users/user.js', 'public/assets/js/users/user.js').
js('resources/assets/js/time_entries/time_entry.js',
'public/assets/js/time_entries/time_entry.js').
js('resources/assets/js/clients/client.js',
'public/assets/js/clients/client.js').
js('resources/assets/js/projects/project.js',
'public/assets/js/projects/project.js').
js('resources/assets/js/task/task.js', 'public/assets/js/task/task.js').
js('resources/assets/js/activity_types/activity.js',
'public/assets/js/activity_types/activity.js').
js('resources/assets/js/tags/tag.js', 'public/assets/js/tags/tag.js').
js('resources/assets/js/report/report.js',
'public/assets/js/report/report.js').
js('resources/assets/js/dashboard/dashboard.js',
'public/assets/js/dashboard/dashboard.js').
js('resources/assets/js/dashboard/developers-daily-report.js',
'public/assets/js/dashboard/developers-daily-report.js').
js('resources/assets/js/task/task_detail.js',
'public/assets/js/task/task_detail.js').
js('resources/assets/js/profile/profile.js',
'public/assets/js/profile/profile.js').
js('resources/assets/js/roles/role.js', 'public/assets/js/roles/role.js').
js('resources/assets/js/task/task_time_entry.js',
'public/assets/js/task/task_time_entry.js').
js('resources/assets/js/department/department.js',
'public/assets/js/department/department.js').
js('resources/assets/js/dashboard/users-open-tasks.js',
'public/assets/js/dashboard/users-open-tasks.js').
version();