-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
102 lines (100 loc) · 4.06 KB
/
webpack.config.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
const Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
.addEntry('celsius3core', [
'./public/bundles/celsius3core/js/main.js',
'./public/bundles/celsius3core/js/jquery-ui-timepicker-addon.js',
'./public/bundles/celsius3core/js/cosmetics.js',
'./public/bundles/celsius3core/js/forms.js',
'./public/bundles/celsius3core/js/cci.js',
'./public/bundles/celsius3core/js/admin.js',
'./public/bundles/celsius3core/js/dnd.js',
'./public/bundles/celsius3core/js/mail.js',
'./public/bundles/celsius3core/js/alert.js'
])
.addEntry('celsius3notification', [
'./public/bundles/celsius3notification/js/autobahn.min.js',
'./public/bundles/celsius3notification/js/notification.js'
])
.addEntry('angular', [
'./public/bundles/celsius3core/js/angular.js',
])
.addEntry('administration', [
'./public/bundles/celsius3core/ng/Administration/controllers.js',
'./public/bundles/celsius3core/ng/Administration/filters.js',
'./public/bundles/celsius3core/ng/Administration/app.js',
'./public/bundles/celsius3core/ng/Administration/resources.js'
])
.addEntry('admin_order', [
'./public/bundles/celsius3core/ng/AdminOrder/app.js',
'./public/bundles/celsius3core/ng/AdminOrder/resources.js',
'./public/bundles/celsius3core/ng/AdminOrder/controllers.js',
'./public/bundles/celsius3core/ng/AdminOrder/filters.js'
])
.addEntry('cci', [
'./public/bundles/celsius3core/ng/CCI/app.js',
'./public/bundles/celsius3core/ng/CCI/directives.js',
'./public/bundles/celsius3core/ng/CCI/resources.js'
])
.addEntry('state_bar', [
'./public/bundles/celsius3core/ng/StateBar/app.js',
'./public/bundles/celsius3core/ng/StateBar/directives.js'
])
.addEntry('admin_base_user', [
'./public/bundles/celsius3core/ng/AdminBaseUser/app.js',
'./public/bundles/celsius3core/ng/AdminBaseUser/controllers.js',
'./public/bundles/celsius3core/ng/AdminBaseUser/filters.js'
])
.addEntry('user', [
'./public/bundles/celsius3core/ng/User/app.js',
'./public/bundles/celsius3core/ng/User/resources.js',
'./public/bundles/celsius3core/ng/User/controllers.js',
'./public/bundles/celsius3core/ng/User/filters.js'
])
.addEntry('admin_institution', [
'./public/bundles/celsius3core/ng/AdminInstitution/app.js',
'./public/bundles/celsius3core/ng/AdminInstitution/controllers.js',
'./public/bundles/celsius3core/ng/AdminInstitution/filters.js'
])
.addEntry('superadministration', [
'./public/bundles/celsius3core/js/dash_table.js'
])
.addEntry('statistics', [
'./public/bundles/celsius3core/js/statistics.js',
'./public/bundles/celsius3core/ng/Statistics/app.js',
'./public/bundles/celsius3core/ng/Statistics/controllers.js',
'./public/bundles/celsius3core/ng/Statistics/filters.js'
])
.addEntry('locales_es', [
'./public/bundles/celsius3core/js/jquery.ui.datepicker-es.min.js',
'./public/bundles/celsius3core/js/select2_locale_es.js',
])
.addEntry('locales_pt', [
'./public/bundles/celsius3core/js/jquery.ui.datepicker-pt.min.js',
'./public/bundles/celsius3core/js/select2_locale_pt-BR.js',
])
.addEntry('login', [
'./public/bundles/celsius3core/js/login.js'
])
.addEntry('search',[
'./public/bundles/celsius3core/js/search.js'
])
.addStyleEntry('global', './public/bundles/celsius3core/scss/celsius3.scss')
.enableSassLoader()
.autoProvideVariables({
_: 'underscore',
$: 'jquery',
jQuery: 'jquery',
'window.$': 'jquery',
'window.jQuery': 'jquery',
when: 'when',
ich: 'icanhaz',
c3: 'c3'
})
.autoProvidejQuery()
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(Encore.isProduction())
;
module.exports = Encore.getWebpackConfig();