-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
40 lines (31 loc) · 1.51 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
36
37
38
39
40
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/assets/sass/blog.custom.scss', 'public/css');
mix.sass('resources/assets/sass/blog-auth.scss', 'public/css');
mix.sass('resources/assets/sass/admin.custom.scss', 'public/css');
mix.sass('vendor/bower_components/font-awesome/scss/font-awesome.scss', 'public/assets/app/css/app.css');
mix.styles([
'vendor/bower_components/gentelella/vendors/bootstrap/dist/css/bootstrap.css',
'vendor/bower_components/gentelella/vendors/animate.css/animate.css',
'vendor/bower_components/gentelella/build/css/custom.css',
'public/css/admin.custom.css'
], 'public/assets/admin/css/admin.css');
mix.scripts([
'resources/assets/js/admin/admin.custom.js'
], 'public/assets/admin/js/admin.js');
mix.copy('vendor/bower_components/gentelella/vendors/bootstrap/fonts', 'public/assets/admin/fonts');
mix.copy('vendor/bower_components/gentelella/production/images', 'public/assets/admin/images');
mix.copy('vendor/bower_components/gentelella/vendors', 'public/assets/admin/vendors');
if (mix.config.inProduction) {
mix.version();
}
mix.browserSync('ocliuziyang.dev');