forked from ebess/advanced-nova-media-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
24 lines (23 loc) · 957 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
const mix = require('laravel-mix');
const path = require('path');
mix.setPublicPath('dist')
.js('resources/js/field.js', 'js').vue({version: 3})
.webpackConfig({
externals: {
vue: 'Vue',
},
output: {
uniqueName: 'vendor/package',
}
})
.alias({
'laravel-nova': path.join(__dirname, '../../laravel/nova/resources/js/mixins/packages.js'),
'axios': path.join(__dirname, 'node_modules/axios'),
'lodash': path.join(__dirname, 'node_modules/lodash'),
'form-backend-validation': path.join(__dirname, 'node_modules/form-backend-validation'),
'@babel/plugin-transform-runtime': path.join(__dirname, 'node_modules/@babel/plugin-transform-runtime'),
'@babel/runtime': path.join(__dirname, 'node_modules/@babel/runtime'),
'vuex': path.join(__dirname, 'node_modules/vuex'),
'@inertiajs/inertia': path.join(__dirname, 'node_modules/@inertiajs/inertia'),
})
.sass('resources/sass/field.scss', 'css')