forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
86 lines (72 loc) · 4.11 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
83
84
85
86
const {
mix
} = require('laravel-mix');
const MonocoEditorPlugin = require('monaco-editor-webpack-plugin')
/*
|--------------------------------------------------------------------------
| 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.webpackConfig({
plugins: [
new MonocoEditorPlugin()
],
resolve: {
modules: [
path.resolve(__dirname, 'node_modules'),
'node_modules'
],
symlinks: false,
alias: {
// This is so we can override some of Laravel Horizon's javascript with our own so we can embed in our UI
Horizon: path.resolve(__dirname, 'vendor/laravel/horizon/resources/assets/js/')
}
},
node: { fs: 'empty' }
}).js('resources/js/app-layout.js', 'public/js')
.js('resources/js/processes/modeler/index.js', 'public/js/processes/modeler')
.js('resources/js/processes/modeler/initialLoad.js', 'public/js/processes/modeler')
.js('resources/js/admin/users/index.js', 'public/js/admin/users')
.js('resources/js/admin/users/edit.js', 'public/js/admin/users/edit.js')
.js('resources/js/admin/groups/index.js', 'public/js/admin/groups')
.js('resources/js/admin/groups/edit.js', 'public/js/admin/groups/edit.js')
.js('resources/js/admin/auth-clients/index.js', 'public/js/admin/auth-clients/index.js')
.js('resources/js/admin/queues/index.js', 'public/js/admin/queues')
.js('resources/js/admin/profile/edit.js', 'public/js/admin/profile/edit.js')
.js('resources/js/processes/index.js', 'public/js/processes')
.js('resources/js/processes/categories/index.js', 'public/js/processes/categories')
.js('resources/js/processes/scripts/index.js', 'public/js/processes/scripts')
.js('resources/js/processes/scripts/edit.js', 'public/js/processes/scripts')
.js('resources/js/processes/environment-variables/index.js', 'public/js/processes/environment-variables')
.js('resources/js/processes/screens/index.js', 'public/js/processes/screens')
.js('resources/js/processes/screen-builder/main.js', 'public/js/processes/screen-builder')
.js('resources/js/processes/screen-builder/typeForm.js', 'public/js/processes/screen-builder')
.js('resources/js/processes/screen-builder/typeDisplay.js', 'public/js/processes/screen-builder')
.js('resources/js/processes/screen-builder/typeEmail.js', 'public/js/processes/screen-builder')
.js('resources/js/requests/index.js', 'public/js/requests')
.js('resources/js/nayra/start.js', 'public/js/nayra')
.js('resources/js/requests/show.js', 'public/js/requests')
.js('resources/js/tasks/index.js', 'public/js/tasks/index.js')
.js('resources/js/tasks/show.js', 'public/js/tasks/show.js')
.js('resources/js/notifications/index.js', 'public/js/notifications/index.js')
// Note, that this should go last for the extract to properly put the manifest and vendor in the right location
// See: https://github.com/JeffreyWay/laravel-mix/issues/1118
.js('resources/js/app.js', 'public/js')
.extract(['vue', 'jquery', 'bootstrap-vue', 'axios', 'popper.js', 'lodash', 'bootstrap'])
.copy('resources/img/*', 'public/img')
.sass('resources/sass/sidebar/sidebar.scss', 'public/css')
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/admin/queues.scss', 'public/css/admin')
.copy('node_modules/snapsvg/dist/snap.svg.js', 'public/js')
.copy('resources/js/components/CustomActions.vue', 'public/js')
.copy('resources/js/components/DetailRow.vue', 'public/js')
.copy('resources/fonts/Open_Sans/', 'public/fonts')
.copy('resources/js/components/FilterBar.vue', 'public/js')
// Copy files necessary for images for the designer/modeler to it's own img directory
.copy('node_modules/@processmaker/modeler/dist/img', 'public/js/processes/modeler/img')
.version()