-
Notifications
You must be signed in to change notification settings - Fork 3
/
webpack.mix.js
executable file
·34 lines (30 loc) · 1.09 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
const mix = require('laravel-mix');
/*
Your BPM Plugin webpack utilizes laravel mix in order to easily compile
your static resources. Refer to the Laravel Mix documentation at
https://laravel.com/docs/5.6/mix for information on how to configure
mix to compile additional resources.
The compiled resources will be put in
your plugin's public folder which can then be published. For information
on how to publish your plugin's resources, review
https://laravel.com/docs/5.6/packages#public-assets for information. Your plugin
service provider located at src/PluginServiceProvider.php already has the public
folder configured for publishing by default.
*/
mix.setPublicPath('public')
.webpackConfig({
resolve: {
symlinks: false,
}
})
.setResourceRoot('/vendor/processmaker/connectors/email/')
.js('resources/js/email-connector.js', 'js')
.js('resources/js/processes/screen-builder/typeEmail.js', 'js/processes/screen-builder')
.version()
.then(() => {
try {
require('./webpack.callback')();
} catch(e) {
//No callback found
}
});