forked from rappasoft/laravel-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
25 lines (22 loc) · 947 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
24
25
let 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/frontend/app.scss', 'public/css/frontend.css')
.sass('resources/assets/sass/backend/app.scss', 'public/css/backend.css')
.js('resources/assets/js/frontend/app.js', 'public/js/frontend.js')
.js([
'resources/assets/js/backend/before.js',
'resources/assets/js/backend/app.js',
'resources/assets/js/backend/after.js'
], 'public/js/backend.js');
if (mix.inProduction() || process.env.npm_lifecycle_event !== 'hot') {
mix.version();
}