-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
executable file
·45 lines (37 loc) · 1.67 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
let mix = require('laravel-mix');
let LiveReloadPlugin = require('webpack-livereload-plugin');
// css vendor
mix.combine([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'resources/assets/sass/font-awesome-4.7.0/css/font-awesome.min.css',
'components/fortawesome/font-awesome/v4.7.0/css/font-awesome.css',
'resources/assets/sass/bundle/fancybox3.min.css',
'node_modules/sweetalert2/dist/sweetalert2.min.css'
], 'public/css/vendor.css');
// mix.combine([
// 'resources/assets/sass/app.scss',
// ], 'resources/assets/sass/bundle/app.scss');
// client app.css
mix.sass('resources/assets/sass/app.scss', '../resources/assets/sass/bundle/app.css');
mix.combine(['resources/assets/sass/bundle/app.css'], 'public/css/app.css');
// admin app.css
mix.sass('resources/assets/sass/app-admin.scss', '../resources/assets/sass/bundle/app-admin.css');
mix.combine(['resources/assets/sass/bundle/app-admin.css'], 'public/css/app-admin.css');
// vendor js
mix.combine([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'resources/assets/js/jssor.slider-22.2.16.min.js',
'resources/assets/js/fancybox3.min.js',
'node_modules/vue-cookie/build/vue-cookie.js',
'node_modules/sweetalert2/dist/sweetalert2.min.js'
], 'public/js/vendor.js');
// client app.js
mix.js('resources/assets/js/app.js', 'public/js/app.js');
// admin app.js
mix.js('resources/assets/js/app-admin.js', 'public/js/app-admin.js');
mix.webpackConfig({
plugins: [
new LiveReloadPlugin()
]
});