This repository was archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwebpack.mix.js
37 lines (33 loc) · 1.52 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
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')
.js('resources/js/service-worker.js', 'public/js')
.sass('resources/sass/theme/dark/index.scss', 'public/css/theme-dark.css')
.sass('resources/sass/theme/light/index.scss', 'public/css/theme-light.css')
.sass('resources/sass/theme/onche-light/index.scss', 'public/css/theme-onche-light.css')
.sass('resources/sass/theme/avn-light/index.scss', 'public/css/theme-avn-light.css')
.sass('resources/sass/theme/synth/index.scss', 'public/css/theme-synth.css')
.sass('resources/sass/theme/sensory/index.scss', 'public/css/theme-sensory.css')
// .sass('resources/sass/theme/bunker/index.scss', 'public/css/theme-bunker.css')
// Copies reused resources
.copyDirectory('resources/img', 'public/img')
.copyDirectory('resources/audio', 'public/audio')
.copyDirectory('resources/video', 'public/video')
.copyDirectory('resources/svg', 'public/svg')
.copyDirectory('resources/vendor', 'public/vendor')
.copyDirectory('resources/public', 'public/')
.options({
processCssUrls: false
})
.version()
;