-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
24 lines (22 loc) · 1.32 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
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/style.css')
.sass('node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss', 'public/css/fontawesome.css')
.sass('node_modules/select2/src/scss/core.scss', 'public/css/select2.css')
.styles('node_modules/@ttskch/select2-bootstrap4-theme/dist/select2-bootstrap4.css', 'public/css/select2-bootstrap4.css')
.scripts('node_modules/jquery/dist/jquery.js', 'public/js/jquery.js')
.scripts('node_modules/bootstrap/dist/js/bootstrap.bundle.js', 'public/js/bootstrap.js')
.scripts('node_modules/@fortawesome/fontawesome-free/js/all.js', 'public/js/fontawesome.js')
.scripts('node_modules/select2/dist/js/select2.full.js', 'public/js/select2.js')
.scripts('node_modules/select2/dist/js/i18n/pt-BR.js', 'public/js/select2-pt-BR.js')
.copyDirectory('resources/vendor', 'public/vendor')
.copyDirectory('resources/img', 'public/img');