-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
58 lines (49 loc) · 1.92 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
let 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.webpackConfig({
resolve: {
modules: [
'node_modules'
],
alias: {
}
}
});
mix.autoload({
jquery: ['$', 'window.jQuery', 'jQuery'],
});
mix
.sourceMaps(true, 'source-map')
.sass('resources/assets/sass/main.scss', 'public/css')
.sass('resources/assets/sass/picker.scss', 'public/css')
.js('resources/assets/js/main.js', 'public/js/main.js')
.js('resources/assets/js/home.js', 'public/js/home.js')
.js('resources/assets/js/schedule.js', 'public/js/schedule.js')
.js('resources/assets/js/player.js', 'public/js/player.js')
.js('resources/assets/js/recap.js', 'public/js/recap.js')
.js('resources/assets/js/statEdit.js', 'public/js/statEdit.js')
.js('resources/assets/js/jobs.js', 'public/js/jobs.js')
.js('resources/assets/js/stats.js', 'public/js/stats.js')
.js('resources/assets/js/scavenger/step3.js', 'public/js/scavenger/step3.js')
.js('resources/assets/js/scavenger/step4.js', 'public/js/scavenger/step4.js')
.js('resources/assets/js/scavenger/step6.js', 'public/js/scavenger/step6.js')
.js('resources/assets/js/scavenger/step8.js', 'public/js/scavenger/step8.js')
.js('resources/assets/js/porter.js', 'public/js/porter.js')
.js('resources/assets/js/declan.js', 'public/js/declan.js')
.js('resources/assets/js/firebase-messaging-sw.js', 'public/firebase-messaging-sw.js')
;
if (mix.inProduction()) {
mix.version();
}
mix.browserSync({
proxy: 'hudsonvillewaterpolo.local'
});