forked from akaunting/akaunting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
82 lines (68 loc) · 3.14 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
const mix = require('laravel-mix');
require('laravel-mix-tailwind');
/*
|--------------------------------------------------------------------------
| Mix Asset 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.
|
*/
//mix.js('resources/assets/js/views/**/*.js', 'public/js')
mix
.setPublicPath('public/')
.webpackConfig({
output: {
publicPath: 'public/js/',
filename: '[name].js',
chunkFilename: '[name].js',
},
stats: {
children: true
},
})
.options({
terser: {
extractComments: false,
}
})
// Auth
.js('resources/assets/js/views/auth/common.js', 'public/js/auth/common.min.js')
.js('resources/assets/js/views/auth/users.js', 'public/js/auth/users.min.js')
// Banking
.js('resources/assets/js/views/banking/accounts.js', 'public/js/banking/accounts.min.js')
.js('resources/assets/js/views/banking/transactions.js', 'public/js/banking/transactions.min.js')
.js('resources/assets/js/views/banking/transfers.js', 'public/js/banking/transfers.min.js')
.js('resources/assets/js/views/banking/reconciliations.js', 'public/js/banking/reconciliations.min.js')
// Common
.js('resources/assets/js/views/common/contacts.js', 'public/js/common/contacts.min.js')
.js('resources/assets/js/views/common/companies.js', 'public/js/common/companies.min.js')
.js('resources/assets/js/views/common/dashboards.js', 'public/js/common/dashboards.min.js')
.js('resources/assets/js/views/common/documents.js', 'public/js/common/documents.min.js')
.js('resources/assets/js/views/common/imports.js', 'public/js/common/imports.min.js')
.js('resources/assets/js/views/common/items.js', 'public/js/common/items.min.js')
.js('resources/assets/js/views/common/reports.js', 'public/js/common/reports.min.js')
// Install
.js('resources/assets/js/install.js', 'public/js/install.min.js')
.js('resources/assets/js/views/install/update.js', 'public/js/install/update.min.js')
//Wizard
.js('resources/assets/js/wizard.js', 'public/js/wizard/wizard.min.js')
// Modules
.js('resources/assets/js/views/modules/apps.js', 'public/js/modules/apps.min.js')
// Portal
.js('resources/assets/js/views/portal/apps.js', 'public/js/portal/apps.min.js')
// Settings
.js('resources/assets/js/views/settings/categories.js', 'public/js/settings/categories.min.js')
.js('resources/assets/js/views/settings/currencies.js', 'public/js/settings/currencies.min.js')
.js('resources/assets/js/views/settings/settings.js', 'public/js/settings/settings.min.js')
.js('resources/assets/js/views/settings/taxes.js', 'public/js/settings/taxes.min.js')
.vue()
.postCss('resources/assets/sass/app.css', 'public/css', [
require('tailwindcss')
])
.tailwind('./tailwind.config.js')
if (mix.inProduction()) {
mix.version()
}