-
Notifications
You must be signed in to change notification settings - Fork 3
/
webpack.mix.js
23 lines (21 loc) · 1018 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
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.sass('resources/sass/app.scss', 'public/css')
.js('resources/js/app.js', 'public/js').extract();
mix.version();
mix.copyDirectory('resources/fonts', 'public/fonts');
mix.copy('node_modules/bootstrap/dist/js/bootstrap.js', 'public/js/bootstrap.js');
mix.copy('node_modules/jquery/dist/jquery.js', 'public/js/jquery.js');
mix.copy('node_modules/aos/dist/aos.css', 'public/css/aos.css');
mix.copy('node_modules/aos/dist/aos.js', 'public/js/aos.js');
mix.sass('resources/sass/style.scss', 'public/css');
mix.sass('resources/sass/bootstrap/bootstrap.scss', 'public/css');