forked from hgraca/explicit-architecture-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
23 lines (21 loc) · 935 Bytes
/
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
var Encore = require('@symfony/webpack-encore');
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.cleanupOutputBeforeBuild()
.autoProvidejQuery()
.autoProvideVariables({
"window.Bloodhound": require.resolve('bloodhound-js'),
"jQuery.tagsinput": "bootstrap-tagsinput"
})
.enableSassLoader()
.enableVersioning(false)
.createSharedEntry('js/common', ['jquery'])
.addEntry('js/app', './src/Presentation/Web/app.js')
.addEntry('js/login', './src/Presentation/Web/Component/Login/Anonymous/login.js')
.addEntry('js/admin', './src/Presentation/Web/Component/admin.js')
.addEntry('js/search', './src/Presentation/Web/Component/Blog/Anonymous/PostList/search.js')
.addStyleEntry('css/app', ['./src/Presentation/Web/app.scss'])
.addStyleEntry('css/admin', ['./src/Presentation/Web/Component/admin.scss'])
;
module.exports = Encore.getWebpackConfig();