-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathwebpack.mix.js
55 lines (49 loc) Β· 2.59 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
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.
|
*/
mix.setPublicPath('./public')
mix.sass('resources/assets/sass/app.scss', 'public/css/app.css')
.sass('resources/assets/sass/vendors/fontawesome.scss', 'public/fonts')
.sass('resources/assets/sass/vendors/material-icons.scss', 'public/fonts')
.styles(['node_modules/animate.css/animate.min.css'], 'public/css/animate.min.css')
.styles(['resources/assets/css/bootstrap.css'], 'public/css/bootstrap.css')
.styles(['resources/assets/css/custom.css'], 'public/css/custom.css')
.sass('resources/assets/sass/components/_all.scss', 'public/css/components.css')
.styles(['resources/assets/css/base.css'], 'public/css/base.css')
.styles(
[
'node_modules/sweetalert2/dist/sweetalert2.css',
'resources/assets/libs/amaranjs/css/amaran.min.css',
'resources/assets/libs/messenger/css/messenger.min.css',
'resources/assets/libs/messenger/css/messenger-theme-air.min.css',
'resources/assets/libs/messenger/css/messenger-theme-flat.min.css',
'resources/assets/libs/messenger/css/messenger-theme-future.min.css',
'resources/assets/libs/messenger/css/messenger-theme-ice.min.css'
], 'public/css/libs.css')
mix.js('resources/assets/js/bootstrap.js', 'public/js/bootstrap.js')
.js(['resources/assets/js/app.js'], 'public/js/app.js')
.scripts(
[
'resources/assets/libs/amaranjs/js/jquery.amaran.min.js',
'resources/assets/libs/messenger/js/messenger.min.js',
'resources/assets/libs/messenger/js/messenger-theme-flat.min.js',
'resources/assets/libs/messenger/js/messenger-theme-future.min.js',
'node_modules/perfect-scrollbar/dist/perfect-scrollbar.js',
'node_modules/sweetalert2/dist/sweetalert2.js',
'node_modules/bs-custom-file-input/dist/bs-custom-file-input.min.js',
'node_modules/bs4-breakpoint-check/js/jquery-breakpoint-check.js',
'node_modules/jquery-touchswipe/jquery.touchSwipe.min.js',
'node_modules/fastclick/lib/fastclick.js'
], 'public/js/libs.js')
mix.copy('resources/assets/images', 'public/images');
if (mix.inProduction()) {
mix.version();
}