forked from iodigital-com/SecretSanta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
44 lines (31 loc) · 1.66 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
// webpack.config.js
var Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('web/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
.enableSassLoader()
.enableVersioning()
// allow legacy applications to use $/jQuery as a global variable
.autoProvidejQuery()
.autoProvideVariables({
"window.jQuery": "jquery"
})
.createSharedEntry('js/vendor', ['jquery', 'bootstrap', './src/Intracto/SecretSantaBundle/Resources/public/js/modernizr.custom.min.js'])
.addEntry('js/party.create', './src/Intracto/SecretSantaBundle/Resources/public/js/party.create.js')
.addEntry('js/party.import', './src/Intracto/SecretSantaBundle/Resources/public/js/party.import.js')
.addEntry('js/party.manage', './src/Intracto/SecretSantaBundle/Resources/public/js/party.manage.js')
.addEntry('js/secretsanta', './src/Intracto/SecretSantaBundle/Resources/public/js/secretsanta.js')
.addEntry('js/wishlist', './src/Intracto/SecretSantaBundle/Resources/public/js/wishlist.js')
.addStyleEntry('css/main', [
'./src/Intracto/SecretSantaBundle/Resources/public/scss/main.scss',
'jquery-ui/themes/base/core.css',
'jquery-ui/themes/base/sortable.css',
])
.addStyleEntry('css/update', './src/Intracto/SecretSantaBundle/Resources/public/css/update.css')
.addStyleEntry('css/report', './src/Intracto/SecretSantaBundle/Resources/public/css/report.css')
.addStyleEntry('css/mediaqueries', './src/Intracto/SecretSantaBundle/Resources/public/css/mediaqueries.css')
.enableSourceMaps(!Encore.isProduction())
;
// export the final configuration
module.exports = Encore.getWebpackConfig();