-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
29 lines (29 loc) · 1.65 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
let mix = require('laravel-mix');
const path = require("path")
mix
.browserSync({
proxy: {
target: 'http://localhost:2025/'
},
port: 2025,
})
.alias({
'@': path.join(__dirname, 'resources')
})
.js('resources/js/app.js', 'public/js')
.js('resources/js/login/index.js', 'public/js/login')
.js('resources/js/main/dashboard/index.js', 'public/js/main/dashboard')
.js('resources/js/main/master/data-karyawan/index.js', 'public/js/main/master/data-karyawan')
.js('resources/js/main/pengaturan/ganti-password/index.js', 'public/js/main/pengaturan/ganti-password')
.js('resources/js/main/transaksi/data-schedule/index.js', 'public/js/main/transaksi/data-schedule')
.copy('resources/js/plugins/toast.js', 'public/js/plugins')
.copy('resources/js/plugins/jquery.number.js', 'public/js/plugins')
.copy('resources/js/plugins/jquery.inputmask.js', 'public/js/plugins')
.copy('node_modules/select2/dist/js/select2.js', 'public/js/plugins/select2/dist/js')
.copy('node_modules/select2/dist/js/select2.full.js', 'public/js/plugins/select2/dist/js')
.copy('node_modules/select2/dist/css/select2.css', 'public/js/plugins/select2/dist/css')
.copy('node_modules/select2/dist/css/select2.min.css', 'public/js/plugins/select2/dist/css')
.copy('node_modules/jquery-datetimepicker/build/jquery.datetimepicker.full.js', 'public/js/plugins/datetimepicker/dist/js')
.copy('node_modules/jquery-datetimepicker/build/jquery.datetimepicker.min.css', 'public/js/plugins/datetimepicker/dist/css')
.sass('resources/css/app.scss', 'public/css')
.sass('resources/css/toast.scss', 'public/css')