-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
26 lines (21 loc) · 904 Bytes
/
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
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.
|
*/
if(mix.inProduction()){
mix.version();
}
mix.js('resources/assets/js/welcome.js', 'public/js')
.js('resources/assets/js/admin.js', 'public/js')
.sass('resources/assets/sass/admin.scss', 'public/css')
.sass('resources/assets/sass/welcome.scss', 'public/css');
mix.copy('resources/assets/images', 'public/images');
mix.copy('resources/assets/images', 'public/images');
mix.copy('node_modules/animate.css/animate.min.css', 'public/css/animate.min.css');