-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
33 lines (30 loc) · 1.33 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
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/app.css')
.styles([
'./node_modules/bootstrap/dist/css/bootstrap.min.css',
'./node_modules/@fortawesome/fontawesome-free/css/fontawesome.min.css',
'./node_modules/@fortawesome/fontawesome-free/css/solid.min.css',
'public/css/app.css'
], 'public/css/app.css')
.scripts([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/jquery-ui-dist/jquery-ui.min.js',
'./node_modules/bootstrap/js/dist/util.js',
'./node_modules/bootstrap/js/dist/toast.js',
'./node_modules/bootstrap/js/dist/modal.js',
'./node_modules/bootstrap/js/dist/alert.js',
'./node_modules/handlebars/dist/handlebars.min.js',
'./node_modules/lodash/lodash.min.js',
'resources/js/itemList.js'
], 'public/js/app.js')
.copyDirectory('./node_modules/@fortawesome/fontawesome-free/webfonts', 'public/webfonts');