forked from start-laravel/sb-admin-laravel-5
-
Notifications
You must be signed in to change notification settings - Fork 7
/
webpack.mix.js
35 lines (32 loc) · 1.21 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
/*jshint esversion: 6 */
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.copy('bower_components/bootstrap/dist/fonts', 'public/assets/fonts');
mix.copy('bower_components/fontawesome/fonts', 'public/assets/fonts');
mix.styles([
'bower_components/bootstrap/dist/css/bootstrap.css',
'bower_components/fontawesome/css/font-awesome.css',
'resources/css/sb-admin-2.css',
'resources/css/timeline.css'
], 'public/assets/stylesheets/styles.css')
.sourceMaps()
.version();
mix.scripts([
'bower_components/jquery/dist/jquery.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/Chart.js/dist/Chart.js',
'bower_components/metisMenu/dist/metisMenu.js',
'resources/js/sb-admin-2.js',
'resources/js/frontend.js'
], 'public/assets/scripts/frontend.js')
.sourceMaps()
.version();