forked from heshen/maguttiCms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
executable file
·49 lines (42 loc) · 1.69 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
41
42
43
44
45
46
47
48
49
const mix = require('laravel-mix');
require('laravel-mix-merge-manifest');
/*
|--------------------------------------------------------------------------
| Mix Asset Fo development 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.
|
*/
//if (mix.inProduction()) {
mix.sass('resources/sass/admin/vendor.scss', 'public/cms/css/')
.js('resources/js/admin/cmsvendor.js', 'public/cms/js/cmsvendor.js')
.version();
/*
|--------------------------------------------------------------------------
| Admin
|--------------------------------------------------------------------------
*/
mix.sass('resources/sass/admin/app.scss', 'public/cms/css/')
.js('resources/js/admin/cms.js', 'public/cms/js/cms.js')
.js('resources/js/admin/header.js', 'public/cms/js/header.js')
.js('resources/js/admin/lara-file-manager.js', 'public/cms/js')
.js('resources/js/admin/appcms.js', 'public/cms/js/').vue();
//} else {
mix.options({
processCssUrls: true,
});
//}
/*
|--------------------------------------------------------------------------
| Website
|--------------------------------------------------------------------------
*/
mix.sass('resources/sass/website/vendor.scss', 'public/website/css')
.js('resources/js/website/vendor.js', 'public/website/js')
mix.sass('resources/sass/website/app.scss', 'public/website/css')
.js('resources/js/website/app.js', 'public/website/js')
.js('resources/js/website/cart.js', 'public/website/js').vue();
mix.mergeManifest();