-
Notifications
You must be signed in to change notification settings - Fork 13
/
webpack.mix.js
60 lines (58 loc) · 2.37 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
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/js/app.js', 'public/js')
.js('resources/js/theme.js', 'public/js')
.vue()
.sass('resources/sass/app.scss', 'public/css')
.copy('node_modules/font-awesome/fonts', 'public/fonts')
.copy('node_modules/tinymce/themes', 'public/js/themes')
.copy('node_modules/tinymce/skins', 'public/js/skins')
.copy('node_modules/tinymce/plugins', 'public/js/plugins')
.copy('node_modules/tinymce/icons', 'public/js/icons')
.styles([
'public/css/sb-admin.css',
'node_modules/toastr/build/toastr.min.css',
'node_modules/pretty-checkbox/dist/pretty-checkbox.min.css',
'node_modules/bootstrap-select/dist/css/bootstrap-select.min.css',
'node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css',
'node_modules/sweetalert2/dist/sweetalert2.css',
'node_modules/@voerro/vue-tagsinput/dist/style.css'
], 'public/css/styles.css')
.scripts([
'node_modules/moment/min/moment.min.js',
'node_modules/toastr/build/toastr.min.js',
'node_modules/bootstrap-select/dist/js/bootstrap-select.js',
'node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js',
'node_modules/jquery.easing/jquery.easing.js',
'node_modules/sweetalert2/dist/sweetalert2.all.js',
'public/js/sb-admin.js',
'node_modules/chart.js/dist/Chart.bundle.js',
'resources/js/common.js'
], 'public/js/scripts.js')
.styles([
'public/css/animation-aos.css',
'public/css/aos.css',
'public/css/style.css',
], 'public/css/landing.css')
.scripts([
'public/js/aos.js',
'public/js/responsiveslides.min.js',
'public/js/move-top.js',
'node_modules/jquery.easing/jquery.easing.js'
], 'public/js/landing.js')
.scripts([
'node_modules/tinymce/tinymce.min.js'
], 'public/js/editor.js')
.sourceMaps()
.browserSync({
proxy: 'hellen.localhost'
});