-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
48 lines (42 loc) · 938 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
const mix = require('laravel-mix');
/**
* Notification
*/
mix.disableNotifications();
/**
* Setup public path to generate assets
*/
mix.setPublicPath('admin/assets/');
/**
* Auto load 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: [
new webpack.DefinePlugin({
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false'
}),
require('unplugin-element-plus/webpack')({
// options
}),
]
};
});