-
Notifications
You must be signed in to change notification settings - Fork 12
/
webpack.mix.js
42 lines (31 loc) · 2.48 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
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.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.styles('node_modules/nprogress/nprogress.css','public/css/nprogress.min.css')
.scripts('node_modules/nprogress/nprogress.js','public/js/nprogress.min.js')
.copy('node_modules/video.js/dist/video-js.min.css','public/css/video-js.min.css')
.copy('node_modules/video.js/dist/video.min.js','public/js/video.min.js')
.copy('node_modules/moment/min/moment-with-locales.min.js','public/js/moment-with-locales.min.js')
.styles('node_modules/videojs-contextmenu-ui/dist/videojs-contextmenu-ui.css','public/css/videojs-contextmenu-ui.min.css')
.copy('node_modules/videojs-contextmenu-ui/dist/videojs-contextmenu-ui.min.js','public/js/videojs-contextmenu-ui.min.js')
.styles('node_modules/videojs-http-source-selector/dist/videojs-http-source-selector.css','public/css/videojs-http-source-selector.min.css')
.copy('node_modules/videojs-http-source-selector/dist/videojs-http-source-selector.min.js','public/js/videojs-http-source-selector.min.js')
.copy('node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.min.js','public/js/videojs-contrib-quality-levels.min.js')
.scripts('node_modules/videojs-titleoverlay/videojs-titleoverlay.js','public/js/videojs-titleoverlay.min.js')
.scripts('node_modules/videojs-airplay/dist/videojs.airplay.js','public/js/videojs.airplay.min.js')
.styles('node_modules/videojs-airplay/dist/videojs.airplay.css','public/css/videojs.airplay.min.css')
.copy('node_modules/autolinker/dist/autolinker.min.js','public/js/autolinker.min.js')
.scripts('node_modules/@silvermine/videojs-chromecast/dist/silvermine-videojs-chromecast.js','public/js/silvermine-videojs-chromecast.min.js')
.styles('node_modules/@silvermine/videojs-chromecast/dist/silvermine-videojs-chromecast.css','public/css/silvermine-videojs-chromecast.min.css')
.copy('node_modules/@silvermine/videojs-chromecast/dist/images','public/images')
.scripts('resources/js/dreambox.js', 'public/js/dreambox.min.js');