-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
66 lines (50 loc) · 944 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const mix = require('laravel-mix');
/**
* Notification
*/
mix.disableNotifications();
/**
* Alias
*/
//mix.alias({
// '@': path.join(__dirname, 'admin/src')
//});
/**
* Browser sync
*/
//mix.browserSync({
// proxy: 'http://wpvue.local/wp-admin/admin.php?page=addonify_wishlist#/',
//});
/**
* Setup public path to generate assets
*/
mix.setPublicPath('admin/assets/');
/**
* Autoload jQuery
*/
mix.autoload({
jquery: ['$', 'window.jQuery', 'jQuery']
});
/**
* Compile admin assets.
*/
mix.js('admin/src/main.js', 'admin/assets/js/main.js').vue();
mix.sass('admin/assets/scss/index.scss', 'admin/assets/css/admin.css');
/**
* Extract Vendor
* Note: https://laravel-mix.com/docs/6.0/extract
*/
mix.extract();
/**
*
* Extend Mix
*/
mix.webpackConfig(webpack => {
return {
plugins: [
require('unplugin-element-plus/webpack')({
// options
}),
]
};
});